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

Allow for using the password grant with a confidential client #114

Merged
merged 3 commits into from
Jun 4, 2019

Conversation

alexashley
Copy link
Contributor

The current implementation only allows direct access grants with a public client.

@@ -43,13 +43,13 @@ func NewKeycloakClient(baseUrl, clientId, clientSecret, realm, username, passwor
}
clientCredentials := &ClientCredentials{
ClientId: clientId,
ClientSecret: clientSecret,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The zero value for a string is the empty string, so this shouldn't affect public clients.

@mrparkers mrparkers merged commit dae3710 into master Jun 4, 2019
@mrparkers mrparkers deleted the password-client-secret branch June 4, 2019 14:45
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