Skip to content

Ensure Client Secret is Required for Clients with ClientCredentials Grant#1796

Merged
bhazen merged 1 commit into
mainfrom
beh/no-clientcredentials-without-required-secret
Feb 13, 2025
Merged

Ensure Client Secret is Required for Clients with ClientCredentials Grant#1796
bhazen merged 1 commit into
mainfrom
beh/no-clientcredentials-without-required-secret

Conversation

@bhazen

@bhazen bhazen commented Feb 13, 2025

Copy link
Copy Markdown
Contributor

What issue does this PR address?
Currently it's possible to configure a client to allow the ClientCredentials grant type and set RequireClientSecret on the client to false which creates a bad scenario. These changes update the DefaultClientConfigurationValidator to consider that scenario invalid.

Important: Any code or remarks in your Pull Request are under the following terms:

If You provide us with any comments, bug reports, feedback, enhancements, or modifications proposed or suggested by You for the Software, such Feedback is provided on a non-confidential basis (notwithstanding any notice to the contrary You may include in any accompanying communication), and Licensor shall have the right to use such Feedback at its discretion, including, but not limited to the incorporation of such suggested changes into the Software. You hereby grant Licensor a perpetual, irrevocable, transferable, sublicensable, nonexclusive license under all rights necessary to incorporate and use your Feedback for any purpose, including to make and sell any products and services.

(see our license, section 7)

@bhazen bhazen added the area/products/is IdentityServer label Feb 13, 2025
@bhazen bhazen self-assigned this Feb 13, 2025
@bhazen bhazen requested a review from josephdecock as a code owner February 13, 2025 20:25
@bhazen bhazen force-pushed the beh/no-clientcredentials-without-required-secret branch from cb2c0ad to fb0fef6 Compare February 13, 2025 20:28
@bhazen bhazen merged commit dab1717 into main Feb 13, 2025
@bhazen bhazen deleted the beh/no-clientcredentials-without-required-secret branch February 13, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/products/is IdentityServer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants