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

docker: Is it necessary make WEBLATE_SOCIAL_AUTH_GITLAB_SCOPE and WEBLATE_AUTHENTICATION_BACKENDS available as Docker environment variable? #8689

Closed
2 tasks done
calbasi opened this issue Jan 27, 2023 · 3 comments
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.

Comments

@calbasi
Copy link

calbasi commented Jan 27, 2023

Describe the issue

To enable Gitlab OAuth2 weblate use 5 environment variables:

https://docs.weblate.org/en/latest/admin/auth.html#gitlab-oauth-2

but only 3 of them are available at Docker:

https://docs.weblate.org/en/latest/admin/install/docker.html#gitlab

So I wonder if, like #8132 we need to add the missing 2 as docker environment variables.

I already tried

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

Steps to reproduce the behavior

  1. Go to '...'
  2. Scroll down to '...'
  3. Click on '...'
  4. See error

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

  • Weblate: 4.11.2

Weblate deploy checks

No response

Additional context

No response

@calbasi calbasi added the question This is more a question for the support than an issue. label Jan 27, 2023
@github-actions
Copy link

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!

@nijel
Copy link
Member

nijel commented Jan 27, 2023

Setting key and secret is all you need in Docker, rest is done automatically:

if "WEBLATE_SOCIAL_AUTH_GITLAB_KEY" in os.environ:
AUTHENTICATION_BACKENDS += ("social_core.backends.gitlab.GitLabOAuth2",)
if "WEBLATE_SOCIAL_AUTH_GITLAB_API_URL" in os.environ:
SOCIAL_AUTH_GITLAB_API_URL = os.environ.get("WEBLATE_SOCIAL_AUTH_GITLAB_API_URL")
SOCIAL_AUTH_GITLAB_KEY = os.environ.get("WEBLATE_SOCIAL_AUTH_GITLAB_KEY", "")
SOCIAL_AUTH_GITLAB_SECRET = os.environ.get("WEBLATE_SOCIAL_AUTH_GITLAB_SECRET", "")
SOCIAL_AUTH_GITLAB_SCOPE = ["read_user"]

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Feb 7, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2023
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. wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants