-
Notifications
You must be signed in to change notification settings - Fork 996
Add more Google features #1207
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
base: main
Are you sure you want to change the base?
Add more Google features #1207
Conversation
- Allow automatic account creation as with GitHub
- Allow limiting which Google domains can create accounts
- Add documentation of the flags involved
- Allow automatic account creation as with GitHub - Allow limiting which Google domains can create accounts - Add documentation of the flags involved
This shouldn't affect existing installs - so long as neither |
Very nice @smerrill! I know this code area is a little light on unit tests. Would you be able to add a bit of coverage? Breaking up google_oauth2 might help with that. |
1 similar comment
|
||
if google_domain && !google_email.end_with?("@#{google_domain}") | ||
# Fail if the email does not match our domain | ||
flash[:error] = "'#{google_email}' is unauthorized. Only #{google_domain} email addresses are allowed." |
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.
Why disclose this information?
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.
Good point, should be minimal disclosure. @smerrill you up for fixing this?
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.
Unintentional disclosure of allowed domains needs to be fixed.