| Endpoint | Path | |
|---|---|---|
| Discovery | GET /.well-known/openid-configuration | |
| Authorization | GET /oauth/authorize (response_type=code, PKCE S256, nonce supported) | |
| Token | POST /oauth/token (authorization_code, refresh_token, client_credentials; client_secret_post, client_secret_basic or public + PKCE) | |
| UserInfo | `GET | POST /oauth/userinfo (Bearer access token with openid` scope) |
| JWKS | GET /oauth/jwks | |
| End session | `GET | POST /oauth/logout (id_token_hint, client_id, post_logout_redirect_uri, state`) |
Scopes and claims:
| Scope | Claims |
|---|---|
openid | sub (the person's UUID, stable for life) |
profile | name, preferred_username, updated_at |
email | email, email_verified |
roles | roles: the person's roles in that application, or its default roles |
ID tokens are signed with Passport's RSA private key (RS256, kid = RFC 7638 thumbprint) and carry iss, aud, iat, exp, auth_time, nonce, at_hash, and the amr (pwd, otp, hwk, fed, mfa) and acr of the sign-in really made — an application can ask for a second factor. Access tokens last 1 hour, refresh tokens 14 days. Full reference: docs/oidc.md.