Choose OIDC, OAuth, SAML, or hosted login
Select the right authentication approach.
Choose your authentication approach
Start with where the sign-in UI belongs and whether a person is involved. The protocol and the login experience are separate choices: an OpenID Connect application normally redirects to Unidy's hosted login, while an SDK application renders its own login UI.
| What you are building | Use | Register in Unidy | Start here |
|---|---|---|---|
| A browser or native application that redirects to Unidy for sign-in | OpenID Connect Authorization Code with S256 PKCE | A public OAuth application and its callback URI | Authorization Code with PKCE |
| A web application whose backend exchanges the authorization code | OpenID Connect Authorization Code with S256 PKCE and client authentication | A confidential OAuth application, callback URI and server-held client secret | Code for confidential clients |
| An application with its own sign-in components | The Unidy JavaScript or React SDK | An SDK client and allowed application origins | JavaScript SDK or React SDK |
| An existing service provider that accepts SAML assertions | SAML 2.0, with Unidy as the identity provider | A SAML configuration for the service provider | SAML overview |
| A backend integration that reads or writes data without a signed-in customer | OAuth client credentials for the REST API | A confidential OAuth application with the required API scopes | Make your first REST request |
OAuth applications, SDK clients and SAML configurations are different registrations. Their credentials are not interchangeable. Client credentials has no browser callback and does not identify an individual customer.
Identity, API access and login methods
OpenID Connect identifies a person. Include openid in an authorization request to receive an ID token as well as the OAuth access token. Request only the profile claims and API scopes your application needs. An access token authorizes API access; an ID token is an identity assertion for its intended client.
Hosted login supplies the sign-in experience. Its enabled methods, branding, required fields and registration settings are managed separately from the OAuth application. Use login and registration settings to configure that experience.
The SDK embeds the sign-in UI. Password and magic-code entry can happen in your application. Social providers and other identity handoffs may navigate to a provider and return. Check the SDK guide for the supported methods and callback setup; choosing the SDK does not mean every flow stays on the same page.
SAML has a direction. The SAML guides describe your application trusting assertions from Unidy. For an external identity provider signing users into Unidy, see login providers and sessions.
Choose the client type before exchanging codes
A browser bundle or native application cannot keep a client secret confidential. Register it as a public client and use S256 PKCE. A backend can keep a secret: use a confidential client and PKCE together. PKCE binds the code exchange to the initiating request; it does not replace server-side client authentication.
For new integrations, use Authorization Code instead of implicit or password grants. Follow the chosen guide for callback validation, token storage and logout. The authentication architecture explains which sessions and credentials each flow creates.