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

Support basic authentication in auth provider userinfo request #2260

Merged
merged 3 commits into from Jul 4, 2017

Conversation

kke
Copy link
Contributor

@kke kke commented May 4, 2017

Fixes #2248

If the config oauth2.userinfo_requires_basic_auth is true, the auth provider client will send client_id + client_secret as basic auth credentials when performing the userinfo/token introspection request.

The default behavior when the config value is false is to use the obtained access token as bearer authentication header.

Copy link
Contributor

@SpComb SpComb left a comment

Choose a reason for hiding this comment

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

Well, my first kontena master login with this failed with a HTTP 400 from the master /cb, but the second try works, so I guess it didn't break kontena cloud master logins ¯\(ツ)

Do not want to actually start reviewing the oauth2 spec and implementations for the use of basic authorization headers for client ID/secrets in whatever part of the flow.

@SpComb SpComb added this to the 1.4.0 milestone Jun 28, 2017
@SpComb SpComb merged commit 0b42d9f into master Jul 4, 2017
@SpComb SpComb deleted the feature/oauth_userinfo_basic_auth branch July 4, 2017 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants