-
Notifications
You must be signed in to change notification settings - Fork 0
SSO
Zuup Auth functions as a unified OAuth 2.0 Identity Provider for all internal projects and external partners.
To implement "Sign in with Zuup" on your frontend application, follow these three steps:
-
Redirect the user to the login portal: Construct a URL that points to the Zuup Auth gateway, passing your application's client ID and callback URL.
https://auth.zuup.dev/login?client_id=YOUR_APP&redirect_uri=https://example.com/callback -
Receive the Authorization Code: After successful authentication (via password or magic link), the user will be redirected back to your application with a temporary authorization code appended to the URL:
https://example.com/callback?code=zcode_123... -
Exchange the Code for Tokens: Have your backend server exchange this temporary code for the user's permanent JWT and profile data by making a
POSTrequest to the Token API:POST https://auth.zuup.dev/api/oauth/token
Custom OAuth providers like GitHub, Google, and Discord are fully supported by the gateway.
When configuring these applications in their respective developer portals, the Callback URL must always be set to:
https://auth.zuup.dev/auth/v1/callback
The Edge Proxy will handle the OAuth dance and unify the session into the standard Zuup Auth format.
We support SAML and OIDC for enterprise partners. Redirect users to /sso/login with the target provider ID, and the Edge Proxy will automatically negotiate the enterprise authentication flow and return a standardized Zuup Session token to your application.