Require PKCE
Use authorization code with an S256 challenge for public clients.
Security
Protect every stage of your Egreed ID integration: authorization, callback handling, token verification, credential storage, scope selection, session renewal, and incident response.
Use authorization code with an S256 challenge for public clients.
Reject callbacks that do not match the values created for the original request.
Register HTTPS callback addresses and avoid permissive redirect matching.
Ask only for scopes needed by the current feature.
Never put API keys, client credentials, or refresh tokens in browser code.
Handle expired and revoked credentials without retry loops or data leakage.
Egreed ID signs ID tokens with RS256. Resolve signing keys from /api/public/oauth/jwks, select the matching key ID, and verify the signature locally. Also validate issuer, audience, expiry, and nonce before trusting claims. Do not use decoded claims until verification succeeds.
Create separate Test and Live keys, give each key the minimum necessary scopes, choose an expiry, and store the raw value only in a server-side secret manager. Egreed ID stores key material as SHA-256 hashes and records last use. Rotate keys when ownership, deployment, or access requirements change.
Refresh tokens rotate after every successful use. Persist the replacement atomically and treat reuse as a security incident because the full chain is revoked. With sessions:read, review known devices and trust state; with sessions:revoke, remove device trust remotely.
Out-of-scope requests are rejected with HTTP 403 and entered in the integration access log. Use audit:read to forward security and account events to your monitoring or SIEM workflow. Do not write access tokens, refresh tokens, API keys, authorization codes, or full identity payloads into your own logs.