Repository navigation
2.4.6
Social login now works for clients whose callback is on another origin, and it
goes through the consent screen like every other login method. Upgrading is
recommended for every deployment that offers social login to OAuth/OIDC
clients, and in particular for anyone who added client origins to
--allowed-origins to make social login work. That workaround can now be
removed. See the upgrade notes at the end.
Fixed
-
Social login failed with
invalid redirect urifor a client whose callback is on another origin (#855, #899, #901)./authorizeand/appcheckredirect_uriagainst the client's registered redirect URIs, but/oauth_loginand/oauth_callbackchecked it only against the global--allowed-originsand then sent the authorization code straight to the client. A client registered withhttps://app.example.org/callbacktherefore passed/authorize, reached the login page, and failed at "Continue with GitHub". The only workaround was adding the client's origin to--allowed-origins, which also loosens CORS, the CSRF origin check and the email-link redirects, for every client. Social login now ends the way password login already does: it returns to this server's own/app, which replays the request to/authorize./authorizethen checks the client's registered callback, shows consent if the client needs it, binds PKCE and issues the code. This is also how Auth0 and other providers treat social connections./oauth_loginand/oauth_callbackaccept this server's own/app,/app/or/app/signup(same scheme and host:port as--url, exact path, no fragment); on that hop the callback sets the session only, issues no code and appends nothing, so the client'snoncereaches the ID token. Thanks to @kurnias for the report. -
Social login skipped the consent screen for self-registered and CIMD clients (same change). The consent gate lives in
/authorize, and the old social path delivered the code without going through it. It was reachable only for a client whose callback origin was in--allowed-origins; that is the same restriction that caused the bug above, so fixing one could not be done by loosening it without opening the other. -
The hosted login page sends its own URL to
/oauth_login.@authorizerdev/authorizer-react2.2.1 makesAuthorizerSocialLogin, on Authorizer's own login page during an/authorizerequest, send the page's/app/URL (with the/authorizeparameters moved into the query string) instead of the client's callback (authorizer-react#75). Everywhere else, including a login page on your own site, it sends the sameredirect_urias before. -
A rejected SAML assertion logged only "Authentication failed" (#901).
crewjam/samlputs the real reason inInvalidResponseError.PrivateErrand returns a fixed public message. The ACS handler now logs that reason ascauseat debug level (--log-level=debug), so an operator can tell a clock skew, a bad signature and a missingAuthnStatementapart. Nothing changes in the response.
Changed
- MCP:
/mcpreturns noMcp-Session-Id, andDELETE /mcpreturns 405 (since 2.4.5) (#900). The MCP server has always run stateless, so replicas need no session affinity. 2.4.5's move tomodelcontextprotocol/go-sdkv1.8.0 made a stateless server also stop issuing session IDs, per the spec's sessionless direction (SEP-2567). Session IDs are optional for MCP servers, so spec-conformant clients need no change; a 405 onDELETEis the spec's "server does not allow clients to terminate sessions"; and a session ID still held from an earlier server is ignored rather than rejected. This went unnoticed in 2.4.5 because only the browser suite checked the header;internal/mcpnow pins it in CI. - SAML SP: an assertion without an
<AuthnStatement>is rejected (since 2.4.5).crewjam/samlv0.6.2, which 2.4.5 moved to for its<NameID>-spoofing fix (#828), enforces saml-profiles §4.1.4.2: a login assertion "MUST contain at least one<AuthnStatement>". Every mainstream IdP (Okta, Entra ID, ADFS, Google Workspace) sends one for browser SSO, so conformant IdPs are unaffected. A non-conformant IdP now fails at/oauth/saml/<org>/acswithsaml_assertion_invalid; the debug log names the reason (below). The e2e mock IdP was itself non-conformant here and is fixed (#901). - Dependencies (#901). Alpine 3.24.4. Dashboard:
@urql/core6 withurql5,tailwind-merge3 (the dashboard is on Tailwind CSS v4),vitest5,jsdom31, plus minor/patch groups for both web apps.
Deprecated
- Completing an
/authorizerequest by sending the client's callback straight to/oauth_login. It still works when the callback's origin is in--allowed-origins, but it skips consent, and the server now logssocial login completed an /authorize request without resuming through /authorizeeach time. A future release will refuse it. The hosted login page no longer does this; a customised login page should send its own/appURL instead — see Social login inside an authorization request.
Upgrade notes
- Hosted login page: nothing to do. The page is built into the same image as the server.
- Remove the workaround. If you added client origins to
--allowed-originsonly so social login would work, remove them after upgrading. Keep any origin your own front end needs for CORS. - Customised login page (your own build served by Authorizer at
/app): sendredirect_uri= the page's own/appURL with the/authorizeparameters in the query string, then replay to/authorizeonce the session exists. If it is built on@authorizerdev/authorizer-react, upgrade to 2.2.1. Until you do, it keeps working as before, with the warning above. - Social login started on
/appwith no client now returns to/appwithoutstateandnonceappended, and is accepted under any--allowed-originslist (it used to need a bare*). Nothing on/appreads either parameter. /oauth_loginand/oauth_callbackcalled directly (mobile apps, a "Sign in with GitHub" link on your own site): unchanged.