OAuth 2.1 PKCE S256 Checklist: Exact Redirects, S256 & Token Security
Validate Authorization Code + PKCE S256 enforcement, exact redirect_uri string matching, sender-constrained refresh tokens, and deprecated OAuth 2.0 flow removal.
Lint OpenID Connect discovery JSON for HTTPS issuers, S256-only PKCE, disabled Implicit response_types, asymmetric JWT algs (ES256/RS256), and RFC 7009 revocation.
{
"resource": "https://mcp.acme.example.com/mcp",
"authorization_servers": [
"https://auth.acme.example.com"
],
"bearer_methods_supported": [
"header"
],
"scopes_supported": [
"openid",
"profile",
"email",
"mcp:tools"
],
"resource_documentation": "https://mcp.acme.example.com/docs/auth",
"dpop_signing_alg_values_supported": [
"ES256",
"EdDSA"
],
"dpop_bound_access_tokens_required": true
}
HTTP/1.1 401 Unauthorized WWW-Authenticate: Bearer resource_metadata="https://mcp.acme.example.com/.well-known/oauth-protected-resource", scope="openid profile email mcp:tools" Cache-Control: no-store
Run an automated live authentication probe on AuthPosture (auth.runglab.dev) or integrate fleet checks via RungLab Hub API (hub.runglab.dev) and Official MCP Server dev.runglab/devtools — or ship the $39 AuthPosture Fix Pack (tailored OIDC & PKCE S256 patches, RFC 9728 MCP metadata, /.well-known/passkey-endpoints, __Host- cookie rules, COOP/CSP login headers, magic-link DMARC/SPF, and SOC 2 CC6.1 / NIST 800-63B CI gate). Prefer PayPal invoicing? Email [email protected].
| Control / Header | Hardened Baseline | Security & Compliance Rationale |
|---|---|---|
issuer |
Exact HTTPS Origin (Zero Query/Fragment) |
Must match ID token iss claim byte-for-byte over HTTPS (OIDC Discovery §4.3) |
response_types_supported |
["code"] (Zero "token") |
Eliminates Implicit and Hybrid token-in-fragment grant exposure |
code_challenge_methods_supported |
["S256"] |
Signals strict OAuth 2.1 PKCE enforcement without plain fallback |
id_token_signing_alg_values_supported |
["ES256", "RS256", "EdDSA"] |
Excludes 'none' and symmetric HS256 key-confusion traps |
{
"issuer": "https://auth.acme.example.com",
"authorization_endpoint": "https://auth.acme.example.com/oauth2/authorize",
"token_endpoint": "https://auth.acme.example.com/oauth2/token",
"userinfo_endpoint": "https://auth.acme.example.com/oauth2/userinfo",
"revocation_endpoint": "https://auth.acme.example.com/oauth2/revoke",
"jwks_uri": "https://auth.acme.example.com/.well-known/jwks.json",
"response_types_supported": [
"code"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"code_challenge_methods_supported": [
"S256"
],
"id_token_signing_alg_values_supported": [
"ES256",
"RS256"
],
"token_endpoint_auth_methods_supported": [
"private_key_jwt",
"none"
],
"subject_types_supported": [
"public"
],
"scopes_supported": [
"openid",
"profile",
"email",
"mcp:tools"
]
}
curl -fsS -X POST "https://auth.acme.example.com/oauth2/revoke" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "token=REFRESH_OR_ACCESS_TOKEN" \ --data-urlencode "token_type_hint=refresh_token"
Validate Authorization Code + PKCE S256 enforcement, exact redirect_uri string matching, sender-constrained refresh tokens, and deprecated OAuth 2.0 flow removal.
Generate compliant RFC 9728 /.well-known/oauth-protected-resource manifests and 401 WWW-Authenticate challenges for remote Streamable HTTP MCP servers and APIs.
Generate FIDO Alliance /.well-known/passkey-endpoints JSON and hardened WebAuthn PublicKeyCredential RP policies requiring residentKey and userVerification.
Validate Set-Cookie headers against RFC 6265bis __Host- rules (Secure, Path=/, zero Domain= attribute), HttpOnly XSS defense, SameSite CSRF protection, and bounded Max-Age.
Generate hardened login-route HTTP response headers combining Cross-Origin-Opener-Policy, CSP frame-ancestors 'none', X-Frame-Options: DENY, Referrer-Policy: no-referrer, and Cache-Control: no-store.
Secure passwordless magic-link and OTP email flows with isolated auth-mail subdomains, strict DMARC p=reject (adkim=s, aspf=s), SPF -all, and same-browser PKCE binding.
← Back to AuthPosture Hub · AuthPosture ($39 Fix Pack) → · hub.runglab.dev → · dev.runglab/devtools →
No for public discovery metadata. Asymmetric algorithms (ES256, RS256, EdDSA) paired with jwks_uri prevent key-confusion attacks and shared-secret distribution.
Auditors verify that compromised or logged-out refresh tokens can be revoked programmatically rather than waiting days or weeks for TTL expiry.
Yes — run a live scan at https://auth.runglab.dev or automate checks through https://hub.runglab.dev and dev.runglab/devtools.