This API is a traditional REST-like API that provides all functionality regarding user signup and login. It provides endpoints compliant with OAuth 2.0, OpenID Connect and Solid standards. Next to the authorization code and refresh token grants, it also supports the OAuth 2.0 Client Credentials grant for machine access and the JWT Bearer grant for native apps. This API is used by the Quasr Login UI.
https://{tenant_id}.api.quasr.io.The API provides the below endpoints. Several of them behave differently depending on whether a session token is provided as bearer token in the Authorization header: without one (no session) they return public tenant configuration, with one they return data specific to the user being logged in or signed up.
| API | Authorization | Description |
|---|---|---|
GET .well-known/openid-configuration |
| OpenID Connect discovery document. |
GET .well-known/oauth-authorization-server |
| OAuth 2.0 authorization server metadata. |
GET .well-known/oauth-protected-resource/{resource} |
| OAuth 2.0 protected resource metadata. |
GET .well-known/jwks.json |
| Public keys to validate tokens issued by Quasr. |
GET oauth2/authorize |
| Starts the OAuth 2.0 / OpenID Connect authorization flow (browser redirect). |
POST oauth2/token |
| Issues tokens for the authorization code, refresh token, client credentials and JWT bearer grants. |
POST oauth2/introspect |
| Returns the status and claims of a token. |
POST oauth2/revoke |
| Revokes a token. |
GET oidc1/userinfo |
| Returns claims about the user (OpenID Connect UserInfo). |
POST oidc1/userinfo |
| Returns claims about the user (OpenID Connect UserInfo). |
GET factors |
| Returns the factors available for signup and login (with a session token: the remaining enrollments or factors for the user to continue login or signup). |
POST factors |
| Validates a factor during signup or login and issues a session token. |
GET factors/oauth2/callback |
| Redirect URI for federated login via an external identity provider. |
POST factors/oauth2/callback |
| Redirect URI for federated login via an external identity provider (form post). |
GET controls |
| Returns the controls (terms, consents) that apply for a client. |
POST controls |
| Accepts the controls during signup, or grants consent and issues a consent token. |
GET attributes |
| Returns the attributes to capture during signup or login. |
POST attributes |
| Stores the captured claims for the user. |
GET tenants/{tenant_id} |
| Returns the public tenant configuration (e.g. used by the Login UI). |
GET accounts/{account_id} |
| Returns the Solid WebID profile (or client ID document) of an account, as JSON-LD, Turtle or RDF/XML depending on the Accept header. |
Quasr is an OAuth 2.0 authorization server and OpenID Connect identity provider. See OAuth and OpenID Connect for more details on the supported flows.
https://{tenant_id}.api.quasr.io/.well-known/jwks.json.https://{tenant_id}.api.quasr.io/.well-known/openid-configuration.https://{tenant_id}.api.quasr.io/.well-known/oauth-authorization-server.https://{tenant_id}.api.quasr.io/.well-known/oauth-protected-resource/{resource}, where {resource} is one of: mcp (Agent API), graphql (Management API), oauth2/introspect, oauth2/revoke or oidc1/userinfo. It lists the authorization server and the scopes supported by that resource.To offload the API we cache the below - generally highly static - API responses using a global CDN. Responses are only cached by the CDN, not by browsers or other clients (max-age=0). Responses that depend on a session or access token are never cached.
| API Click to sort descending | Condition Click to sort ascending | Status Click to sort ascending | Duration Click to sort ascending |
|---|---|---|---|
GET .well-known/jwks.json |
| 1 month | |
GET .well-known/oauth-authorization-server |
| 1 month | |
GET .well-known/oauth-protected-resource/{resource} |
| 1 month | |
GET .well-known/openid-configuration |
| 1 month | |
GET * | endpoints above |
| 5 min |
GET accounts/{account_id} |
| 1 day | |
GET attributes | no session |
| 1 month |
GET controls | no session |
| 1 month |
GET factors | no session |
| 1 month |
GET tenants/{tenant_id} |
| 1 day |
stale-while-revalidate). If our services are unavailable, the CDN keeps serving the last successful response for up to 1 day (stale-if-error).The API is rate limited per individual endpoint to assure bandwidth availability across all endpoints. The RPS is the sustained number of requests per second, the burst is the number of requests that can be handled at once above that rate. Limits marked "no cache" only apply to requests that aren't served from the CDN cache (see Caching). Requests exceeding a limit are rejected with a 429 Too Many Requests response and should be retried with backoff.
| API Click to sort descending | Condition Click to sort ascending | RPS Click to sort ascending | Burst Click to sort ascending |
|---|---|---|---|
GET .well-known/jwks.json | no cache | 250 | 100 |
GET .well-known/oauth-authorization-server | no cache | 250 | 100 |
GET .well-known/oauth-protected-resource/{resource} | no cache | 250 | 100 |
GET .well-known/openid-configuration | no cache | 250 | 100 |
GET accounts/{account_id} | no cache | 25 | 5 |
GET attributes | no session/cache | 500 | 100 |
GET attributes | 1500 | 100 | |
GET controls | no session/cache | 250 | 100 |
GET controls | 1000 | 100 | |
GET factors | no session/cache | 500 | 100 |
GET factors | 1500 | 100 | |
GET factors/oauth2/callback | 250 | 100 | |
GET oauth2/authorize | 1000 | 100 | |
GET oidc1/userinfo | 50 | 50 | |
GET tenants/{tenant_id} | no cache | 25 | 5 |
POST attributes | 1000 | 100 | |
POST controls | no session | 250 | 100 |
POST controls | 250 | 100 | |
POST factors | no session | 1000 | 100 |
POST factors | 1000 | 100 | |
POST factors/oauth2/callback | 250 | 100 | |
POST oauth2/introspect | 1000 | 100 | |
POST oauth2/revoke | 250 | 100 | |
POST oauth2/token | 1000 | 100 | |
POST oidc1/userinfo | 50 | 50 |
403 Forbidden response until you reduce your rate (this can take up to 5 minutes to clear, since it's a rolling window). This limitation can be relevant for large shared networks or back-end integrations that operate via fixed IP.403 Forbidden response. Contact security@quasr.io if you believe your IP is blocked in error.