-
Notifications
You must be signed in to change notification settings - Fork 271
feat(auth): enables OIDC Auth code flow #468
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
Conversation
Provides an option for developers to specify the OAuth response type for their OIDC provider (either one of these can be set:): id_token code (if set, must also set the client secret)
lahirumaramba
left a comment
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.
Thanks, Ryan! Added a few comments.
lahirumaramba
left a comment
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.
Thank you!
LGTM with minor comments. Let's get the reference docs reviewed as well.
auth/provider_config.go
Outdated
| if val, ok := config.params.Get(idTokenResponseTypeKey); ok && val.(bool) { | ||
| return nil, "", errors.New("Only one response type may be chosen") | ||
| } | ||
| } else { |
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.
Can this be a } else if {? and same below.
auth/provider_config.go
Outdated
| } | ||
| } | ||
|
|
||
| if val, ok := config.params.Get(codeResponseTypeKey); ok && !val.(bool) { |
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.
Can codeResponseTypeKey ever be undefined? if not, I think you can use else if here.
egilmorez
left a comment
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.
LGTM
Provides an option for developers to specify the OAuth response type for
their OIDC provider (either one of these can be set:):
id_token
code (if set, must also set the client secret)
RELEASE NOTE: Added support for configuring the authorization code flow for OIDC providers.