Cluster 18 · OpenID Connect · /.well-known/openid-configuration

OIDC Discovery Linter: Audit /.well-known/openid-configuration Metadata

Lint OpenID Connect discovery JSON for HTTPS issuers, S256-only PKCE, disabled Implicit response_types, asymmetric JWT algs (ES256/RS256), and RFC 7009 revocation.

OAuth 2.1 · WebAuthn · Zero Upload · Strict CSP

2. OIDC Discovery Linter & RFC 9728 MCP Builder

OIDC Core · RFC 9728
OIDC Discovery Security Posture
100 / 100 (A+)
PASS
OIDC-001: HTTPS issuer present PASS
issuer=https://auth.acme.example.com
OIDC-002: Core OIDC endpoints use HTTPS PASS
authorization_endpoint, token_endpoint, and jwks_uri all use https://.
OIDC-003: PKCE S256 enforced without plain PASS
code_challenge_methods_supported=["S256"]
OIDC-004: Implicit response_types disabled PASS
response_types_supported=["code"]
OIDC-005: Asymmetric ID token signing only PASS
id_token_signing_alg_values_supported=["ES256","RS256"]
OIDC-006: Revocation & UserInfo endpoints advertised PASS
RFC 7009 revocation_endpoint & userinfo_endpoint present over HTTPS.
AuthPosture · OAuth 2.1 & Passkeys $39 AuthPosture Fix Pack

Verify Live OAuth 2.1, OIDC, Passkey & Cookie Posture ($39 Fix Pack)

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].

Authentication Security Specification & Baseline

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

Hardened /.well-known/openid-configuration Baseline

openid-configuration.json
{
  "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"
  ]
}

RFC 7009 Token Revocation Request Example

revoke-token.sh
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"

Implementation Steps & Key Insights

  1. Switch to Mode 2 ('OIDC Discovery & RFC 9728') above and paste your /.well-known/openid-configuration JSON.
  2. Ensure issuer, authorization_endpoint, token_endpoint, and jwks_uri all use https://.
  3. Strip 'token', 'id_token token', and 'plain' from response_types_supported and code_challenge_methods_supported.
  4. Expose RFC 7009 revocation_endpoint over HTTPS so offboarding and SOC 2 CC6.1 session kills propagate immediately.
  • Many legacy IdPs silently advertise 'token' and 'HS256' in discovery metadata for backwards compatibility until explicitly hardened.
  • Publishing strict OIDC metadata lets MCP clients, AI agents, and enterprise SSO integrations auto-configure safely via OAuth 2.1.

Common OAuth, Passkey & Cookie Pitfalls

  • Trailing slash mismatch between discovery issuer and JWT iss claim breaking strict OIDC client validation.
  • Missing CORS Access-Control-Allow-Origin: * on /.well-known/openid-configuration when SPA or browser agents discover endpoints.
Verify Live: Audit your live domain at auth.runglab.dev ($39 AuthPosture Fix Pack), automate via hub.runglab.dev, or connect Official MCP Server dev.runglab/devtools.

More OAuth 2.1, Passkey & Session Security Tools

← Back to AuthPosture Hub · AuthPosture ($39 Fix Pack) → · hub.runglab.dev → · dev.runglab/devtools →

Frequently Asked Questions

Should HS256 appear in id_token_signing_alg_values_supported?

No for public discovery metadata. Asymmetric algorithms (ES256, RS256, EdDSA) paired with jwks_uri prevent key-confusion attacks and shared-secret distribution.

Why does RFC 7009 revocation_endpoint matter for SOC 2 CC6.1?

Auditors verify that compromised or logged-out refresh tokens can be revoked programmatically rather than waiting days or weeks for TTL expiry.

Can AuthPosture audit my live /.well-known/openid-configuration?

Yes — run a live scan at https://auth.runglab.dev or automate checks through https://hub.runglab.dev and dev.runglab/devtools.