Repository navigation
docs: social login resumes through /authorize (2.4.6) - #98
Merged
Merged
Conversation
Documents authorizerdev/authorizer#899 (fixes authorizerdev/authorizer#855): how social login inside an /authorize request now returns to /app and resumes through /authorize, what /oauth_login accepts as redirect_uri, what the callback appends, the compatibility matrix for hosted, custom and direct login UIs, the deprecated direct path and its log warning, and two Common Issues rows. Also documents redirect_uri on /oauth_login (redirectURL is the deprecated alias) and fixes the sample's role= to roles=.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for authorizerdev-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
lakhansamani
added a commit
to authorizerdev/authorizer
that referenced
this pull request
Nov 17, 2026
is_social_login_authorize_resume_supported protected nothing: /authorize only ever sends users to this server's own /app, and that login page is built into the same image as the server, so it cannot run against a server that lacks the resume path. Compatibility is documented instead (authorizerdev/docs#98). Schema, proto and generated code are back to main. Adds a subtest for social login started on /app with no /authorize request, the one behaviour this change alters for default deployments: it now returns to /app without state/nonce appended, which nothing on /app reads.
- oauth2-oidc: redirect_uri acceptance table, a full hop-by-hop round trip (including the /app -> /app/ redirect), a plain-JS customised login page, a before/after for older login pages, and a browser test step in the Testing Guide - authorizer-react: where AuthorizerSocialLogin returns the user, with examples for your own site, a per-screen landing page, and Authorizer's login page during /authorize (2.2.1+, Authorizer 2.4.6+) - endpoints: sample URLs for both /oauth_login forms - the login page's real path is /app/ (Authorizer 301s /app), so the accepted set is /app, /app/ and /app/signup
lakhansamani
added a commit
to authorizerdev/authorizer
that referenced
this pull request
Nov 17, 2026
* fix(oauth): resume social login through /authorize (#855) /oauth_login and /oauth_callback held redirect_uri to --allowed-origins and delivered the authorization code themselves, so a client whose registered callback is on another origin could not use social login, and an /authorize-originated social login skipped the consent gate. Social login may now return to this server's own /app (exact path, same scheme and host:port), which replays the request to /authorize — the same resumption password login already uses. On that hop the callback sets the session only: no code is minted and nothing is appended, so the client's nonce survives into the id_token. - meta: is_social_login_authorize_resume_supported (GraphQL + gRPC) so login UIs adopt the resume path only against a server that supports it - the old direct path is unchanged but logs a deprecation warning when it completes an /authorize request; a later release refuses it * fix(oauth): drop the meta capability flag; cover standalone /app login is_social_login_authorize_resume_supported protected nothing: /authorize only ever sends users to this server's own /app, and that login page is built into the same image as the server, so it cannot run against a server that lacks the resume path. Compatibility is documented instead (authorizerdev/docs#98). Schema, proto and generated code are back to main. Adds a subtest for social login started on /app with no /authorize request, the one behaviour this change alters for default deployments: it now returns to /app without state/nonce appended, which nothing on /app reads. * fix(oauth): accept /app/, the URL the login page is actually on /authorize redirects to /app and the /app route group 301s that to /app/, so a browser renders the login page at /app/?... and that is the URL the login page sends back as redirect_uri. Requiring exactly /app refused it. Found by driving the flow in a real browser (e2e-playground); every Go test had used /app. /app/signup has no such redirect (its trailing-slash form 301s to it), so the accepted set is /app, /app/ and /app/signup.
lakhansamani
marked this pull request as ready for review
November 17, 2026 09:03
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents authorizerdev/authorizer#899 (server) and authorizerdev/authorizer-react#75 (login page), which together fix authorizerdev/authorizer#855.
Draft until these land:
@authorizerdev/authorizer-react2.2.1 (fix(social-login): resume /authorize on Authorizer's login page (authorizer#855) authorizer-react#75) is released and bundled intoweb/appbefore Authorizer 2.4.6. The docs say the hosted page needs no action "from 2.4.6" and thatAuthorizerSocialLogindoes this "from 2.2.1"; both are true only once that happens.core/oauth2-oidcNew "Social login inside an authorization request" subsection under the Authorization Endpoint, covering:
--allowed-origins;Examples:
redirect_uritable: what/oauth_loginaccepts, with seven example URLs and the result for each (/app/,/app,/app/signup, an allowed origin, a client callback, a fragment, other paths, a scheme downgrade)./authorizethrough the/app→/app/redirect,/oauth_login, the callback, the resumed/authorize, and/oauth/token./authorize.Also:
/oauth_login);sdks/authorizer-react/componentsAuthorizerSocialLogingains a "Where the user lands after social login" table (your own site / Authorizer's login page during/authorize/ plain/app), with examples:urlProps);core/endpoints/oauth_logindocumentsredirect_uri(redirectURLis the deprecated alias), the accepted values, and sample URLs for both forms./oauth_callbacksays what it appends and when.role=(which the server ignores) is corrected toroles=.A clean
npm run build(cache cleared) passes, with no broken links or anchors.