Skip to content

docs: add client_credentials grant enhancement doc and config example - #4984

Open
bisbeb wants to merge 1 commit into
dexidp:masterfrom
bisbeb:docs/client-credentials-3660
Open

docs: add client_credentials grant enhancement doc and config example#4984
bisbeb wants to merge 1 commit into
dexidp:masterfrom
bisbeb:docs/client-credentials-3660

Conversation

@bisbeb

@bisbeb bisbeb commented Aug 25, 2026

Copy link
Copy Markdown

What this PR does

Adds documentation for the client_credentials grant type implemented in #4583:

  • docs/enhancements/client-credentials-2026-03-03-3660.md: Dex Enhancement Proposal covering motivation, configuration, token claims, an ArgoCD M2M example, and security considerations.
  • config.yaml.dist: Documents the oauth2.grantTypes entry needed to enable the grant, including the full default list with client_credentials as an opt-in addition.

Why

PR #4583 merged the implementation in March 2026 but no enhancement doc exists yet, and config.yaml.dist has no example showing how to activate the grant. Operators enabling this feature have no reference beyond reading the source.

The enhancement doc follows the same structure as docs/enhancements/token-exchange-2023-02-03-#2812.md.

Verification

All claims in the doc were verified against the current source:

  • Activation via oauth2.grantTypes confirmed in cmd/dex/serve.go and server/config.go
  • Scope policy (accepted/rejected) confirmed in server/grants/clientcredentials.go
  • Claims construction (sub, aud, name, groups) confirmed in server/grants/clientcredentials.go and server/tokens/issuer.go
  • Public client rejection confirmed in server/grants/clientcredentials.go

Closes #3660

Adds a Dex Enhancement Proposal for the client_credentials grant
(RFC 6749 Section 4.4) implemented in dexidp#4583, and documents the
clientCredentials grantTypes entry in config.yaml.dist.

Closes dexidp#3660

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Björn Bärtschi <linuxsatellite@gmail.com>
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.

Implement client credentials flow

1 participant