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

feat: allow different client credentials for omniauth google #1104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

salzig
Copy link
Collaborator

@salzig salzig commented Jan 22, 2025

to allow Tallinn.ruby.ee to authenticate with their own google app.

@salzig salzig requested review from phoet and JoschkaSchulz January 22, 2025 21:26
@salzig salzig self-assigned this Jan 22, 2025
provider :google_oauth2, {
verify_iss: false,
setup: proc do |env|
host = env['SERVER_NAME']
Copy link
Member

Choose a reason for hiding this comment

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

might be a good idea to move the whole subdomain scrabble into some kind of helper since it's necessary for github tokens as well.

it might be worth pulling stuff into the Usergroup class and move initialization to a middleware so you dont have to do the subdomain handling twice (see WhitelabelDetection).

Copy link
Collaborator Author

@salzig salzig Jan 25, 2025

Choose a reason for hiding this comment

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

extraction of whitelabel detection is done in #1108. This needs to be refactored so it uses the current Whitelabel to decide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants