-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add option to restrict Google OAuth logins to hosted domains #1777
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -284,6 +284,9 @@ type GoogleIdentityProvider struct { | |
| ClientID string | ||
| // ClientSecret is the oauth client secret | ||
| ClientSecret string | ||
|
|
||
| // HostedDomain is the optional Google App domain (e.g. "mycompany.com") to restrict logins to | ||
| HostedDomain string | ||
| } | ||
|
|
||
| type OpenIDIdentityProvider struct { | ||
|
|
@@ -301,6 +304,9 @@ type OpenIDIdentityProvider struct { | |
| // ExtraScopes are any scopes to request in addition to the standard "openid" scope. | ||
| ExtraScopes []string | ||
|
|
||
| // ExtraAuthorizeParameters are any custom parameters to add to the authorize request. | ||
| ExtraAuthorizeParameters map[string]string | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What utility does this have for someone writing config? I don't remember us stuffing all the claims into
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nm, parameters, not claims. |
||
|
|
||
| // URLs to use to authenticate | ||
| URLs OpenIDURLs | ||
|
|
||
|
|
||
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.
Is the format well known enough to validate well or would we be risking cutting off valid cases we don't anticipate?
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 couldn't find a description of the format, so I didn't want to assume standard subdomain format