ThoughtsInWords

OIDC Changes in the OAuth 2.0 to 2.1 Transition

Date: June 26, 2026

Overview

OAuth 2.1 is not a ground-up rewrite. It is a consolidation of OAuth 2.0 (RFC 6749) with years of security best practices, errata, and extension RFCs folded into one specification (draft-ietf-oauth-v2-1-15). Because OpenID Connect (OIDC) is an authentication layer built on top of OAuth, every change in the underlying authorization framework ripples upward into how identity tokens are requested, delivered, and validated.

This article covers what changed, what was removed, and what it means for OIDC deployments.

What OAuth 2.1 Removes

Implicit Grant — Gone

The Implicit flow returned tokens directly in the browser URL fragment (#access_token=...). This was convenient for early single-page apps (SPAs) but leaked tokens through browser history, referrer headers, and server logs.

OIDC impact: The response_type=token and hybrid flows that relied on front-channel token delivery are deprecated. OIDC clients must request response_type=code and perform a back-channel token exchange.

Resource Owner Password Credentials (ROPC) — Gone

ROPC let the client collect the user’s password directly and exchange it for tokens. This violated the core delegation principle of OAuth.

OIDC impact: Any OIDC flow that used grant_type=password to obtain an ID token must be migrated to the Authorization Code flow.

What OAuth 2.1 Mandates

PKCE for All Clients

Proof Key for Code Exchange (PKCE, RFC 7636) was originally designed for mobile/public clients that cannot store secrets. OAuth 2.1 makes it mandatory for every client, including confidential server-side applications.

Authorization Request:
  GET /authorize?
    response_type=code
    &client_id=...
    &redirect_uri=...
    &code_challenge=<SHA256(verifier)>
    &code_challenge_method=S256
    &scope=openid profile email

Token Exchange:
  POST /token
    grant_type=authorization_code
    &code=...
    &code_verifier=<original_random_string>

OIDC impact: Every OIDC authentication request must include code_challenge and code_challenge_method. Authorization servers must reject requests that omit them.

Exact Redirect URI Matching

OAuth 2.0 allowed wildcard or substring matching for redirect URIs on some implementations. OAuth 2.1 requires byte-exact comparison.

OIDC impact: Register the full, exact redirect URI with your identity provider. No wildcards, no trailing slashes, no extra query parameters.

No Bearer Tokens in URLs

Tokens must travel in HTTP headers (Authorization: Bearer <token>) or POST bodies — never as URL query parameters.

OIDC impact: Any OIDC client that passed access tokens or ID tokens via query strings must switch to header-based transport.

Refresh Token Security

OAuth 2.1 recommends sender-constrained refresh tokens or token rotation (issuing a new refresh token with every use and invalidating the old one).

OIDC impact: OIDC clients using long-lived sessions via refresh tokens should implement rotation. If a rotated token is replayed, the authorization server should revoke the entire token family.

OIDC-Specific Evolution

While OAuth 2.1 tightens the authorization layer, the OIDC ecosystem has its own parallel evolution.

FAPI 2.0 Security Profile

The Financial-grade API (FAPI) 2.0 profile, finalized in 2025, represents the strictest application of OIDC + OAuth:

Requirement OIDC Core 1.0 FAPI 2.0
Auth flow Multiple options Authorization Code only
PKCE Optional Mandatory
Token binding Optional Mandatory (mTLS or DPoP)
Auth requests Standard Pushed Authorization Requests (PAR) mandatory
ID token delivery Front or back-channel Back-channel only
ID token encryption Optional Required in high-security profiles

FAPI 2.0 eliminates optionality. If you are building for finance, healthcare, or government, this is the baseline.

OpenID Federation 1.0

Traditional OIDC requires manual registration between each Relying Party (RP) and Identity Provider (IdP). OpenID Federation replaces this with trust chains — sequences of signed JWTs that let entities discover and trust each other without prior direct relationships.

Sender-Constrained Tokens (DPoP and mTLS)

Beyond simple bearer tokens, modern OIDC deployments increasingly use proof-of-possession:

Migration Flow

flowchart TD
    A[Current OAuth 2.0 + OIDC] --> B{Using Implicit Flow?}
    B -->|Yes| C[Migrate to Auth Code + PKCE]
    B -->|No| D{Using ROPC?}
    D -->|Yes| C
    D -->|No| E{PKCE enabled?}
    E -->|No| F[Add PKCE to all clients]
    E -->|Yes| G{Exact redirect URI?}
    F --> G
    C --> G
    G -->|No| H[Fix redirect URI registration]
    G -->|Yes| I{Tokens in URLs?}
    H --> I
    I -->|Yes| J[Move tokens to headers]
    I -->|No| K{Refresh token rotation?}
    J --> K
    K -->|No| L[Implement token rotation]
    K -->|Yes| M[OAuth 2.1 + OIDC Compliant]
    L --> M

Quick Migration Checklist

What Stays the Same

Not everything changes. The core OIDC concepts remain intact:

References

  1. RFC 6749 — OAuth 2.0
  2. OAuth 2.1 Draft (draft-ietf-oauth-v2-1)
  3. RFC 7636 — PKCE
  4. OpenID Connect Core 1.0
  5. FAPI 2.0 Security Profile
  6. OpenID Federation 1.0
  7. OAuth 2.0 Security BCP
  8. DPoP — RFC 9449
  9. oauth.net — OAuth 2.1