Sso Callback Redirect
Custom SSO callback endpoint that redirects to SuperTokens.
This endpoint:
- Accepts clean URL path: /auth/sso/callback/{organization_slug}/{provider_slug}
- Validates the organization and provider exist
- Builds SuperTokens thirdPartyId: sso:{organization_slug}:{provider_slug}
- Redirects to SuperTokens callback: /auth/callback/{thirdPartyId}
SuperTokens then handles:
- Exchange code for tokens (using our dynamic provider config)
- Get user info
- Call our sign_in_up override (creates user_identity, adds user_identities to session)
- Redirect to frontend with session cookie
Path parameters
Response
Successful Response
Changes
Changed in 4 of the 360 revisions of this API.22
- ○
endpoint added
endpoint-added
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 31 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 651 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲