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.
Generate FIDO Alliance /.well-known/passkey-endpoints JSON and hardened WebAuthn PublicKeyCredential RP policies requiring residentKey and userVerification.
Uses your primary domain (acme.example.com) and NIST AAL target from Mode 1 to generate /.well-known/passkey-endpoints and WebAuthn PublicKeyCredentialCreationOptions.
{
"enroll": "https://acme.example.com/account/passkeys/enroll",
"manage": "https://acme.example.com/account/passkeys"
}
{
"rp": {
"id": "acme.example.com",
"name": "acme.example.com Auth"
},
"authenticatorSelection": {
"residentKey": "required",
"requireResidentKey": true,
"userVerification": "required"
},
"attestation": "none",
"pubKeyCredParams": [
{
"type": "public-key",
"alg": -7
},
{
"type": "public-key",
"alg": -257
},
{
"type": "public-key",
"alg": -8
}
],
"timeout": 60000,
"allowedOrigins": [
"https://acme.example.com",
"https://app.acme.example.com"
]
}
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 |
|---|---|---|
Discovery Path |
/.well-known/passkey-endpoints |
FIDO Alliance / password-manager discovery JSON advertising enroll & manage URLs |
userVerification |
"required" |
Ensures biometric or local device PIN check (never 'discouraged' for AAL2/AAL3) |
residentKey |
"required" (Discoverable Credential) |
Enables passwordless passkey autofill and one-tap sign-in flows |
rp.id |
Effective Top-Level Domain (e.g. acme.example.com) |
Cryptographically binds passkey assertions to exact origin against phishing |
{
"enroll": "https://acme.example.com/account/passkeys/enroll",
"manage": "https://acme.example.com/account/passkeys"
}
{
"rp": { "id": "acme.example.com", "name": "acme.example.com Auth" },
"authenticatorSelection": {
"residentKey": "required",
"requireResidentKey": true,
"userVerification": "required"
},
"attestation": "none",
"pubKeyCredParams": [
{ "type": "public-key", "alg": -7 },
{ "type": "public-key", "alg": -257 },
{ "type": "public-key", "alg": -8 }
],
"timeout": 60000
}
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.
Generate compliant RFC 9728 /.well-known/oauth-protected-resource manifests and 401 WWW-Authenticate challenges for remote Streamable HTTP MCP servers and APIs.
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 →
It lets password managers, browsers, and operating systems discover direct deep links where users can upgrade legacy passwords to passkeys (enroll) or rotate keys (manage).
No. Standard B2B SaaS AAL2 deployments use attestation: 'none' for privacy and frictionless enrollment, reserving attestation: 'direct' for AAL3 hardware-key allowlists.
CRAReady/AuthPosture inspects /.well-known/passkey-endpoints, OIDC discovery, cookie flags, and login clickjacking shields — test live at https://auth.runglab.dev.