Skip to content

use TokenClientCredentialStyle for PAR requests#351

Open
josephdecock wants to merge 1 commit intomainfrom
jmdc/par-client-credential-style
Open

use TokenClientCredentialStyle for PAR requests#351
josephdecock wants to merge 1 commit intomainfrom
jmdc/par-client-credential-style

Conversation

@josephdecock
Copy link
Copy Markdown
Member

PushAuthorizationRequestAsync was not using the configured TokenClientCredentialStyle, causing PAR requests to potentially use a different credential style than token and refresh requests.

Fixes #349

PushAuthorizationRequestAsync was not using the configured
TokenClientCredentialStyle, causing PAR requests to potentially use a
different credential style than token and refresh requests.

Fixes #349
Copilot AI review requested due to automatic review settings April 10, 2026 19:39
@josephdecock josephdecock self-assigned this Apr 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a mismatch in client authentication style used for Pushed Authorization Requests (PAR) vs token/refresh requests in Duende.IdentityModel.OidcClient, aligning PAR with the configured OidcClientOptions.TokenClientCredentialStyle (per issue #349 / RFC 9126 expectations).

Changes:

  • Apply OidcClientOptions.TokenClientCredentialStyle to PAR requests in AuthorizeClient.
  • Expand tests to validate PAR client authentication for both PostBody (default) and AuthorizationHeader styles.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
identity-model-oidc-client/src/IdentityModel.OidcClient/AuthorizeClient.cs Ensures PAR uses the same configured client credential style as token/refresh requests.
identity-model-oidc-client/test/IdentityModel.OidcClient.Tests/CodeFlowResponseTests.cs Adds/updates tests to assert PAR credentials are sent via body vs Basic auth header depending on configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@josephdecock josephdecock requested a review from bhazen April 10, 2026 20:55
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.

Wrong ClientCredentialStyle used in PushedAuthorization

3 participants