Status Checks, Outages & Logout
Because JointTex OIDC is designed for short-lived, high-assurance identity assertions without shared cross-app cookies, relying parties must follow the session validation and logout contract below.
Token lifetimes
Section titled “Token lifetimes”- ID tokens (
id_token): Valid for 300 seconds (5 minutes), signed withRS256. - Opaque access tokens (
access_token): Valid for 300 seconds, accepted only atGET /oidc/userinfo(they cannot access JointTex project APIs or/mcp).
Mandatory UserInfo status checks
Section titled “Mandatory UserInfo status checks”Relying parties must call GET /oidc/userinfo at least every 60 seconds and before sensitive actions, without caching a successful check longer than 60 seconds.
On every UserInfo call, JointTex validates:
- Access-token expiry and the application’s current revision and owner standing.
- Whether the user’s account is active (not suspended or deleted).
- Whether the underlying browser session is still active and verified.
If any check fails — due to sign-out, all-device session revocation, account suspension/deletion, rotated client credentials, or token revocation — UserInfo returns 401 with invalid_token. When an access token expires or returns 401, require a fresh browser authorization flow before continuing authenticated work.
Handling transient outages (503)
Section titled “Handling transient outages (503)”If the identity backend is temporarily unreachable, /oidc/userinfo returns:
HTTP/1.1 503 Service UnavailableRetry-After: 2Content-Type: application/json
{"error":"temporarily_unavailable"}When you receive 503:
- Do not treat it as a revoked token or sign the user out of your app.
- Retry with backoff respecting
Retry-After. - If your last successful check is older than 60 seconds, pause authenticated/sensitive actions and show a retryable service-unavailable notice while keeping the user’s local draft state intact.
Single-application logout and revocation
Section titled “Single-application logout and revocation”To log a user out of your application:
- Clear your application’s own session cookie or store.
- Optionally revoke the JointTex access token with a form
POSTto/oidc/revokeusing your application’s authentication method (client_secret_basicfor server apps, orclient_idin the body for public apps):
curl -X POST https://jointtex.com/oidc/revoke \ -u "<client_id>:<client_secret>" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "token=<access_token>"Revocation is idempotent (always returns 200, even for unknown tokens) and only revokes tokens belonging to your application. It does not log the user out of JointTex or any other application.
Conversely, signing out of JointTex revokes that browser session so OIDC access tokens tied to it fail their next UserInfo check.
JWKS signing key rotation
Section titled “JWKS signing key rotation”- JointTex signs ID tokens with RSA-2048 keys (
RS256) rotated on a 30-day UTC cycle. - Previous period public keys remain published at
https://jointtex.com/oidc/jwksfor at least 30 days after rotation — far longer than any ID token’s 300-second lifetime. - Configure your OIDC client to cache JWKS responsibly and refresh it automatically whenever an ID token carries an unseen
kid.
