Skip to content

fix(gateway): Document what clients receive when OIDC token exchange fails - #7531

Open
Brisinger wants to merge 3 commits into
Kong:mainfrom
Brisinger:patch-2
Open

Brisinger wants to merge 3 commits into
Kong:mainfrom
Brisinger:patch-2

Conversation

@Brisinger

@Brisinger Brisinger commented Oct 12, 2026 •

Copy link
Copy Markdown

Clarify behavior on token exchange failure and logging.

Description

Fixes #7529

Adds one paragraph to "How token exchange works": a failed exchange (token endpoint refusal, 5xx, or unreachable) returns 401 with error="invalid_token" to the client, the token endpoint status is only in the data plane log, and an unreachable endpoint answers after config.timeout.

Observed on Kong Gateway Enterprise 3.14.0.15, self-managed data plane, four runs; the full table is in the issue. The paragraph says "about twice config.timeout (measured; see #7529)" because, when the token endpoint didn't answer, Kong sent a second token request (details and a question in the issue). Please confirm the behaviour on 3.15 and 3.16 before merging. If it differs by version, the paragraph may need a version note.

Preview Links

https://deploy-preview-7531--kongdeveloper.netlify.app/plugins/openid-connect/#token-exchange

Checklist

  • Tested how-to docs. If not, note why here. Not applicable: reference page, no how-to changed.
  • All pages contain metadata. (Frontmatter unchanged.)
  • Any new docs link to existing docs. (Links to the config.timeout reference.)
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager). Not applicable: no instructions changed.
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter. (Unchanged.)
  • Add new pages to the product documentation index (if applicable). Not applicable.

Clarify behavior on token exchange failure and logging.
@Brisinger
Brisinger requested a review from a team as a code owner October 12, 2026 07:04
@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

馃懛 Deploy request for kongdeveloper pending review.

Visit the deploys page to approve it

Name Link
馃敤 Latest commit e93384a

Update logging and timeout behavior for token endpoint failures.
@lena-larionova lena-larionova self-assigned this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenID Connect token exchange: document what the client receives when the token endpoint refuses the exchange or is unreachable

2 participants