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

How correctly use all emails from a domain in google auth? #9499

Closed
2 tasks done
perrfect opened this issue Jul 3, 2023 · 4 comments
Closed
2 tasks done

How correctly use all emails from a domain in google auth? #9499

perrfect opened this issue Jul 3, 2023 · 4 comments
Labels
question This is more a question for the support than an issue.

Comments

@perrfect
Copy link

perrfect commented Jul 3, 2023

Describe the issue

I'm using Weblate in docker-compose. And also using google auth for login.
Google auth works correctly, but only if I set one email address in WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS=test@example.com
How can I set all emails from the domain in WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS.
I tried to use:

WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS=*@example.com
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS=^.*@example.com$

But it doesn't work.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

A docker-compose with the next setting:

WEBLATE_REGISTRATION_OPEN=0
WEBLATE_REGISTRATION_ALLOW_BACKENDS=google-oauth2
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS=example.com
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY="test.apps.google.com"
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET="qwerty"
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS=*@example.com

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

@perrfect perrfect added the question This is more a question for the support than an issue. label Jul 3, 2023
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

In case your question is already answered, making a donation is the right way to say thank you!

@perrfect perrfect changed the title How correctly use all emails from domain in google auth? How correctly use all emails from a domain in google auth? Jul 4, 2023
@nijel
Copy link
Member

nijel commented Jul 4, 2023

How about just WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS=example.com?

@perrfect
Copy link
Author

perrfect commented Jul 4, 2023

How about just WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS=example.com?

Hello. Thank you for your reply. Everything is ok. Thank you.

@perrfect perrfect closed this as completed Jul 4, 2023
@github-actions
Copy link

github-actions bot commented Jul 4, 2023

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants