Unidy Docs

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 buildingUseRegister in UnidyStart here
A browser or native application that redirects to Unidy for sign-inOpenID Connect Authorization Code with S256 PKCEA public OAuth application and its callback URIAuthorization Code with PKCE
A web application whose backend exchanges the authorization codeOpenID Connect Authorization Code with S256 PKCE and client authenticationA confidential OAuth application, callback URI and server-held client secretCode for confidential clients
An application with its own sign-in componentsThe Unidy JavaScript or React SDKAn SDK client and allowed application originsJavaScript SDK or React SDK
An existing service provider that accepts SAML assertionsSAML 2.0, with Unidy as the identity providerA SAML configuration for the service providerSAML overview
A backend integration that reads or writes data without a signed-in customerOAuth client credentials for the REST APIA confidential OAuth application with the required API scopesMake 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.

Was this page helpful?