OpenID Connect endpoints

Discovery, authorization, token, UserInfo, keys and logout, at a glance.

EndpointPath
DiscoveryGET /.well-known/openid-configuration
AuthorizationGET /oauth/authorize (response_type=code, PKCE S256, nonce supported)
TokenPOST /oauth/token (authorization_code, refresh_token, client_credentials; client_secret_post, client_secret_basic or public + PKCE)
UserInfo`GETPOST /oauth/userinfo (Bearer access token with openid` scope)
JWKSGET /oauth/jwks
End session`GETPOST /oauth/logout (id_token_hint, client_id, post_logout_redirect_uri, state`)

Scopes and claims:

ScopeClaims
openidsub (the person's UUID, stable for life)
profilename, preferred_username, updated_at
emailemail, email_verified
rolesroles: 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.