Closed sietevecesmal closed 4 years ago
There is currently no such variable as WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS, see https://docs.weblate.org/en/latest/admin/install/docker.html#google
And in that case, how could I whitelist domains? Security speaking I should be able to restrict Google SSO to my company's domain.
Thanks for your quick response!
You currently cannot do this in Docker, patches are welcome.
Related code is here:
Cool, pull request created. Thanks!
Thank you for your report, the issue you have reported has just been fixed.
Hi!
Is it possible this still isn't in the edge
image? Because it still ignores the domain whitelist.
In that case, do you have an ETA?
Thanks for your time.
It will be part of the 4.1 release, there is currently no plan to point release before that.
Cool, thanks!
Describe the bug Is not possible to whitelist domains using
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS
environment variable.To Reproduce Adding
WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS: ['domain.com']
to the docker environment variables still allows users with other domains to sign-in into weblate.Already tried with
SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS
just in case.Expected behavior As shown here an
AuthForbidden
error raise is expected for users not in thedomain.com
domain.Server configuration and status