OAuth endpoints
Reference for the OAuth and OpenID Connect endpoints on https://auth.<domain>. The grants themselves are described on the Authentication page.
Token
POST
/oauth/tokenauth| Grant | Body |
|---|---|
client_credentials | client_id, client_secret |
authorization_code | code, redirect_uri, client_id, client_secret, optional code_verifier |
refresh_token | refresh_token, client_id, client_secret |
urn:ietf:params:oauth:grant-type:token-exchange | subject_token, subject_token_type, client_id, client_secret |
Authorize
GET
/oauth/authorizeauth| Query | Description |
|---|---|
response_type | code |
client_id | App client id |
redirect_uri | One of the app's redirect URIs |
scope | Space separated: openid, profile, email, offline_access |
state | Returned unchanged |
code_challenge, code_challenge_method | PKCE (S256) |
Errors: oauth/unsupported-response-type, oauth/invalid-client, oauth/invalid-redirect-uri, oauth/grant-not-allowed, oauth/pkce-required.
Scopes
| Scope | Purpose |
|---|---|
openid | Identity, returns an ID token |
profile | Name and picture |
email | Email address |
offline_access | Refresh token |
tenant:read, users:read, users:write, mcp:service | Additional scopes, granted only if the app allows them |
JWKS
GET
/oauth/.well-known/jwks.jsonauth{ "keys": [{ "kty": "RSA", "kid": "…", "use": "sig", "alg": "RS256", "n": "…", "e": "AQAB" }] }
Introspect
POST
/oauth/introspectauth- curl
- JavaScript
- Python
- R
curl -s https://auth.scenid.cloud/oauth/introspect \
-H 'Content-Type: application/json' -d '{"token":"eyJ…"}'
const response = await fetch('https://auth.scenid.cloud/oauth/introspect', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ token: 'eyJ…' })
})
console.log(response.status, await response.json())
import requests
response = requests.post(
"https://auth.scenid.cloud/oauth/introspect",
json={"token": "eyJ…"},
)
print(response.status_code, response.json())
library(httr2)
response <- request("https://auth.scenid.cloud/oauth/introspect") |>
req_body_json(list(token = "eyJ…")) |>
req_error(is_error = \(r) FALSE) |>
req_perform()
resp_status(response)
resp_body_json(response)
{ "active": true, "sub": "5b8c…", "scope": "", "token_type": "service", "tenantId": "…", "iss": "…", "exp": 1790000000, "iat": 1789996400 }
Userinfo
GET
/oauth/userinfoauthRequires a user Bearer token. Service tokens get 403 oauth/forbidden.