Applications — Native

Appplications

In this setup you connect your app to Quasr using the Authentication API and embed the login in your app. You call the Authentication API provided by Quasr directly from your application.

The flow is straightforward:

  1. You sign up or login using the authentication factors and obtain a session token.
  2. Once you reach the required score you can get a consent token with your session.
  3. You exchange the consent token for identity and access tokens at the token endpoint.

This setup is not recommended and should only be used in exceptional circumstances. It's suitable for:

  • constrained devices that can't easily open a browser, such as self-service kiosks, point-of-sale terminals, smart TVs and other embedded devices

Detailed Flow

The sequence diagram below details the entire flow.

Setup

The embedded approach is very similar to the Custom Login UI approach in that you'll use the Authentication API exactly the same but not from a separate login UI but from your application directly using the OAuth 2.0 token endpoint and JWT bearer grant.

It differs in that it doesn't need the OAuth 2.0 authorization call to kick off the flow and that the consent token at the end also does not need to be passed back to the OAuth 2.0 authorize API, but that it can be used directly to obtain tokens. High-level the process is as follows:

  1. Embed your own login UI using the Quasr Authentication API.
  2. Exchange the consent token directly for identity/access token.

Instead of step 8 make a POST request to https://{tenant_id}.api.quasr.io/oauth2/token with following body:

{    "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",    "assertion": "{consent_token}"}
  1. 1Lets your back-end exchange the consent token from the Authentication API for tokens
  2. 2Your back-end authenticates the token request - a device can't keep a secret
  3. 3The enrollment your back-end authenticates with, e.g. a signing key - rotate it by switching to a new one
2026.11.22 | © Copyright 2026 Quasr BV