Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Remove the client secret from the Keycloak authorization endpoint #4

Merged
merged 1 commit into from
Nov 9, 2017

Conversation

highbyte
Copy link
Collaborator

@highbyte highbyte commented Nov 9, 2017

The fix removes the client secret from the Keycloak Authorization endpoint.
The client secret is not used by the authentication request, and the client secret should not be visible to user in the browser.

Tested on an ASP.NET MVC UI application, with a Keycloak client using Standard (code) Flow and Access-Type: confidential.

I have not verified Implicit flow, I am not sure if this library is expected to support that (?).

According to the OpenId Connect specification (used by Keycloak), neither Code, Implicit (nor Hybrid) flow expects a client secret in the authentication request (http://openid.net/specs/openid-connect-core-1_0.html)

When running the library in WebApi mode (which only verifies the bearer token), it should not be affected as it does not do an authentication request itself (as per my understanding)

This is my first real pull request on GitHub, please let me know if the way the branch, commit and pull request were done can be improved :)

#3

Client secret is not used by authorization endpoint, and the client secret should not be visible to user in the browser.
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.

2 participants