OAuth 2.0 (RFC 6749) is a delegated authorization framework: it lets a user grant an application limited access to a protected resource without sharing their credentials with that application. It defines four roles — the resource owner (typically the user), the client (the application requesting access), the authorization server (which authenticates the resource owner and issues tokens — this is Quasr), and the resource server (the API hosting the protected resource). Quasr implements OAuth 2.0 as its authorization server and aligns with the consolidated OAuth 2.1 draft, which folds in the security best practices the ecosystem converged on since 2012.
The primary grant for interactive apps is the Authorization Code grant with Proof Key for Code Exchange (PKCE, RFC 7636): the client obtains a short-lived authorization code via a browser redirect through the resource owner, then exchanges it for tokens directly with the authorization server. PKCE binds that exchange to the specific client that started the flow, closing the interception window that affected the now-removed Implicit grant. Quasr requires PKCE on every authorization code flow, in line with OAuth 2.1.
For machine-to-machine access without a resource owner (e.g. backend service to backend service), OAuth 2.0 defines the Client Credentials grant, where the client authenticates directly to the authorization server using its own credentials and receives an access token scoped to itself.
Quasr issues access tokens as JWTs (see RFC 9068, JWT Profile for OAuth 2.0 Access Tokens) so resource servers can validate them locally against the JWKS, without a round-trip to Quasr on every request. Bearer tokens are sent per RFC 6750 as an Authorization: Bearer <token> header. The relevant endpoints on your tenant are:
https://{tenant_id}.api.quasr.io/oauth2/authorize — starts the authorization code flowhttps://{tenant_id}.api.quasr.io/oauth2/token — exchanges a code (or credentials) for tokens, and refreshes tokenshttps://{tenant_id}.api.quasr.io/oauth2/introspect — lets a resource server check token validity server-sidehttps://{tenant_id}.api.quasr.io/oauth2/revoke — revokes a token