Skip to content

fix(auth): Return login context in single-org mode - #125132

Merged
evanpurkhiser merged 1 commit into
masterfrom
git/fix-auth-return-login-context-in-single-org-mode
Sep 22, 2026
Merged

evanpurkhiser merged 1 commit into
masterfrom
git/fix-auth-return-login-context-in-single-org-mode

Conversation

@evanpurkhiser

Copy link
Copy Markdown
Member

Single-organization mode currently returns only a redirect from /auth/config/ for anonymous sessions. Auth V2 needs the normal login context to decide whether to offer password authentication or require SSO.

Return the normal context with singleOrganizationSlug in single-org mode. Authenticated sessions continue to receive only nextUri. Backend tests cover both response shapes.

This backend change should land before the frontend single-org login PR.

Anonymous single-org sessions need the login context to render password and SSO options. Return the default organization slug alongside that context so the client can select its canonical login route.
@evanpurkhiser
evanpurkhiser requested review from a team as code owners September 21, 2026 21:42
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 21, 2026
@evanpurkhiser
evanpurkhiser merged commit c5a73f6 into master Sep 22, 2026
68 checks passed
@evanpurkhiser
evanpurkhiser deleted the git/fix-auth-return-login-context-in-single-org-mode branch September 22, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants