Skip to content

docs: social login resumes through /authorize (2.4.6) - #98

Merged
lakhansamani merged 2 commits into
mainfrom
docs/social-login-authorize-resume
Nov 17, 2026
Merged

lakhansamani merged 2 commits into
mainfrom
docs/social-login-authorize-resume

Conversation

@lakhansamani

@lakhansamani lakhansamani commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Documents authorizerdev/authorizer#899 (server) and authorizerdev/authorizer-react#75 (login page), which together fix authorizerdev/authorizer#855.

Draft until these land:

  1. fix(oauth): resume social login through /authorize (#855) authorizer#899 is merged.
  2. @authorizerdev/authorizer-react 2.2.1 (fix(social-login): resume /authorize on Authorizer's login page (authorizer#855) authorizer-react#75) is released and bundled into web/app before Authorizer 2.4.6. The docs say the hosted page needs no action "from 2.4.6" and that AuthorizerSocialLogin does this "from 2.2.1"; both are true only once that happens.

core/oauth2-oidc

New "Social login inside an authorization request" subsection under the Authorization Endpoint, covering:

  • the flow diagram and three steps;
  • why client origins must not go into --allowed-origins;
  • consent for self-registered and CIMD clients, and nonce preservation.

Examples:

  • redirect_uri table: what /oauth_login accepts, 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).
  • Full round trip: every request and response, hop by hop, from /authorize through the /app → /app/ redirect, /oauth_login, the callback, the resumed /authorize, and /oauth/token.
  • A customised login page: plain JavaScript for the social buttons and for resuming /authorize.
  • Updating an older login page: a one-line before/after diff.

Also:

  • a compatibility table (hosted page / your own login-page build / direct /oauth_login);
  • the deprecated direct path and its log warning;
  • a Testing Guide step to verify the flow in a browser;
  • two Common Issues rows.

sdks/authorizer-react/components

AuthorizerSocialLogin gains a "Where the user lands after social login" table (your own site / Authorizer's login page during /authorize / plain /app), with examples:

  • social login on your own site;
  • a different landing page per screen (urlProps);
  • Authorizer's own login page during an authorization request, showing the exact URLs before and after.

core/endpoints

  • /oauth_login documents redirect_uri (redirectURL is the deprecated alias), the accepted values, and sample URLs for both forms.
  • /oauth_callback says what it appends and when.
  • The sample's role= (which the server ignores) is corrected to roles=.

A clean npm run build (cache cleared) passes, with no broken links or anchors.

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=.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 17, 2026 6:48am UTC

@netlify

netlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authorizerdev-docs ready!

Name Link
🔨 Latest commit 70594e3
🔍 Latest deploy log https://app.netlify.com/projects/authorizerdev-docs/deploys/6afbf8b4ab9fd3b89ce5dd83
😎 Deploy Preview https://deploy-preview-98--authorizerdev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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
lakhansamani marked this pull request as ready for review November 17, 2026 09:03
@lakhansamani
lakhansamani merged commit 44daea0 into main Nov 17, 2026
6 checks passed
@lakhansamani
lakhansamani deleted the docs/social-login-authorize-resume branch November 17, 2026 09:04

This branch was successfully deployed

1 active deployment
Preview — 70594e3e Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant