Interfaces — Custom UIs

Interfaces

You can build your own UIs next to the Quasr UIs, e.g. to match your design completely, to use your own domain, or to make login and account management part of your application. Your UIs use the same public APIs as ours, so they can do everything ours do.

It's not one or the other: your UIs and ours can be used side by side, in the same tenant. This is most common for login, as each application has its own Login URI. For example, your customer-facing applications use your own login UI, branded as part of your product, while your internal tools and the Admin UI keep using our Login UI in internal mode for your team. Likewise, your customers can manage their account in your application while our Account UI stays available.

You can also replace a UI of ours completely, so it's no longer used: see Disabling on the tab of the Login UI, Account UI and Admin UI.

Next to or instead of With Authorization
Login UIYour own login page on the Authentication API, set as Login URI of your applicationsNone, then the session token
Account UIYour own account page (or part of your application) on the Management APIAccess token with the Account Access scope
Admin UIYour own admin tool on the Management API, or automation with the Management API or Agent APIAccess token with the Admin Access scope

Custom Login UI

With your own login UI your applications still connect with standard OpenID Connect, exactly as with ours (see Applications — Browser): only the login page in the middle of the flow is yours. It signs users up and logs them in with the Authentication API, and sends them back to Quasr with a consent token once they're done.

1. Receive the Request

Quasr redirects the user to the Login URI of the application with all parameters of the authorization request. Keep the full query string: you need it unchanged in step 5. The parameters your login UI uses:

  • client_id - The application the user is logging in to. Get its name with GET https://{tenant_id}.api.quasr.io/accounts/{client_id} (client_name) rather than trusting the client_label parameter, which anyone can change in a link.
  • scope - The scopes the application requests (space-separated), which decide the consents you ask in step 4.
  • prompt, mode and ui_locales - Optional, see Login UI — Parameters for how our Login UI handles them.
  • error and error_id - Set when Quasr sends the user back after something went wrong, e.g. at an identity provider.
2. Load the Options

Load what the user can choose from, without authorization at the start and with the session token later on:

  • GET https://{tenant_id}.api.quasr.io/factors - The factors to sign up or log in with, and once a session exists, the remaining enrollments or factors of the user (see Factors — Authentication API). For the first factor of a login, offer the unique factors that identify the account, e.g. email or username.
  • GET https://{tenant_id}.api.quasr.io/controls?client_id={client_id} - The controls of the application: the legal controls to accept, the scope and claim controls to consent to, and the score each requires (see Controls).
  • GET https://{tenant_id}.api.quasr.io/attributes - The attributes the application needs, if you also want to ask users for personal data (see Attributes — Capture).
3. Sign Up or Log In

Pass the factors one at a time with POST https://{tenant_id}.api.quasr.io/factors, as explained in Factors — Authentication API and on the page of each factor:

  • Login - The first factor identifies the account and starts a session; continue with the new session token after every factor.
  • Signup - Starts with POST https://{tenant_id}.api.quasr.io/controls?client_id={client_id} to accept the legal controls, which returns a signup session token. Invited users use their invite token as session token instead.
  • Identity providers - Redirect the user to the identity provider and continue when they come back to your UI (see Factors — Identity Provider). Your UI must be in the factor's Redirect URIs, exactly as it passes its URL.

Continue until the score of the session (session_score) reaches the score of the controls the application requires.

4. Get Consent

Ask for the consents the application still needs, and optionally for missing personal data with POST https://{tenant_id}.api.quasr.io/attributes. Then pass the controls with the user's choices to POST https://{tenant_id}.api.quasr.io/controls?client_id={client_id}, with the session token. Once all required controls are passed, the response contains a consent token.

5. Return to Quasr

Redirect the user to the authorization endpoint with the original query string from step 1 and the consent token:

GET https://{tenant_id}.api.quasr.io/oauth2/authorize?{original_authorization_request}&consent={consent_token} HTTP/1.1

Quasr checks the consent token and returns to the application, which receives its tokens as usual (see Tokens — Consent).

6. Configure and Test

Set your login page as the Login URI of each application that should use it, in the Admin UI under Applications or with the Management API (config.login_uri, see Applications — Configuration). Applications you don't change keep using our Login UI, so you can move one application at a time, or keep ours for some of them on purpose, e.g. for internal tools.

  1. 1Sends this application's logins to your own login page instead of the hosted Login UI
  2. 2Switches back to the hosted Login UI

Then test the whole flow from the application's page in the Admin UI, which starts an authorization request with the options you choose, e.g. prompt and mode:

  1. 1Without the openid scope the OpenID Connect options, like Prompt, are hidden
  2. 2Login asks for a new login even with an existing session - worth supporting in your own login UI
What Our Login UI Also Does

Beyond the basic flow, consider what our Login UI does for your users:

  • Fresh login - With prompt=login it ignores an existing session, e.g. to switch accounts.
  • Internal users - It offers your team only internal factors and attributes, using the internal flag in the response to the first factor (see Login UI — Internal Mode).
  • Consent and opt-ins - It asks for consent at fixed moments, and only captures data with the user's opt-in: pass capture_input and capture_claims as false unless the user agreed, as they default to true in the API (see Login UI — Consent & Data Notes).
  • Data notes - It tells users whether and where their data is stored.
  • Session token - It keeps the session token in the browser and never puts it in a URL (see Tokens — Session).

Custom Account UI

Your own account page is an ordinary application that logs users in with OpenID Connect and calls the Management API on their behalf, like our Account UI does:

  1. Create an application for it, as for any browser application: authorization code with PKCE, with your page as redirect URI. Keep it internal, so users aren't asked to consent to it.
  2. Attach the Account Access control to it with a required rule, so its access tokens contain the scope https://api.quasr.io/scopes/account. The control requires a score of 5 by default.
  3. Log users in with an authorization request for the scopes openid https://api.quasr.io/scopes/account, through our Login UI or your own, and exchange the code for an access token.
  4. Call the Management API with that access token. With the Account Access scope every operation only returns or changes the user's own data, e.g. getAccount, listEnrollments, createEnrollment, listClaims, updateClaim, listConsents, updateConsent, listTokens and listEvents.

Custom Admin UI

An admin tool of your own works the same way, with the Admin Access control (https://api.quasr.io/scopes/admin) instead of Account Access. This control also requires a permission, so only your administrators can use the tool, and a score of 5 by default.

2026.11.22 | © Copyright 2026 Quasr BV