-
Notifications
You must be signed in to change notification settings - Fork 187
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
forward basic auth to OpenID connect token authentication endpoint #2095
Conversation
Kudos, SonarCloud Quality Gate passed! |
// The token auth endpoint uses basic auth for clients, see https://openid.net/specs/openid-connect-basic-1_0.html#TokenRequest | ||
// > The Client MUST authenticate to the Token Endpoint using the HTTP Basic method, as described in 2.3.1 of OAuth 2.0. | ||
func (m basicAuth) isOIDCTokenAuth(req *http.Request) bool { | ||
return req.URL.Path == "/konnect/v1/token" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now hard-coded for konnectd. What about other IDPs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other IdPs won't be hidden behind our proxy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Then it should be ok, I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the failing tests. Maybe rebasing will help?
// The token auth endpoint uses basic auth for clients, see https://openid.net/specs/openid-connect-basic-1_0.html#TokenRequest | ||
// > The Client MUST authenticate to the Token Endpoint using the HTTP Basic method, as described in 2.3.1 of OAuth 2.0. | ||
func (m basicAuth) isOIDCTokenAuth(req *http.Request) bool { | ||
return req.URL.Path == "/konnect/v1/token" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Then it should be ok, I guess.
needs rebase |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
c962d58
to
c3951d6
Compare
Kudos, SonarCloud Quality Gate passed! |
fixes #2094