Environments and client types
Prepare the correct host, client registration, and redirect URIs for an authentication flow.
Choose the client type from where your application runs and where it can keep credentials. Then register it for the intended Unidy environment and brand.
| Application | Starting point | Credential boundary |
|---|---|---|
| Browser or native application implementing OIDC | Authorization Code with PKCE | Treat it as a public client; do not embed a client secret. |
| Web application with a trusted backend handling the callback | Authorization Code for confidential clients | Keep the client secret and token exchange on the backend. |
| Background service accessing provisioned REST resources | Make your first REST request | Use a confidential application and the required resource scopes; client credentials does not sign in a customer. |
| Customer application using Unidy SDK components or hooks | Customer application SDKs | Use SDK app configuration and the customer's session; an SDK key does not replace a confidential OAuth client secret. |
Prepare the registration
- Confirm the Unidy environment and brand host with your administrator. Obtain separate test and production configuration appropriate to your deployment.
- List the exact callback URLs your application will use. Register them on the correct OAuth application; a callback configured for one host does not authorize an unrelated host.
- Confirm the application's public or confidential setting and the intended grant. Request only the scopes required by the flow.
- Load discovery from the expected issuer and check your client library's endpoint and token-authentication settings. Follow the OIDC overview for the current contract.
- Verify the complete flow in the intended environment, including callback errors, logout, and token expiry. Use the authentication and integration checklist before launch.
For dashboard scope and hostname checks, see Tenants, brands, and environments. To provision or change the application, see OAuth applications, claims, and services.