Cannot enable Github Enterprise OAuth #12327
-
Hey! Couple hours ago I was able to set Github OAuth and thought it won't be much difference, but I'm completely lost with GHE auth. I'm also unsure about my docker variables: According to documentation, there are different variables for Github for Teams and Github for Organizations. , but what if I'm in Github Enterprise for Organizations? There's a link to Python Social auth documentation and it states that there are different variables for GHE for Organizations with SOCIAL_AUTH_GITHUB_ENTERPRISE_ORG_* prefix, but these variables weren't stated in Weblate docs. Upd.: I was able to login by copying location field in reponse, seems like the SOCIAL_AUTH_GITHUB_ENTERPRISE_SCOPE var was set in a wrong way. I got redirected at auth page and logged in with my GHE account. The only question left: why it's not redirecting me automatically? Upd.: continuing my investigation I bumped into this error when I'm pressing login button:
Then I found WEBLATE_CSP_* variables in docs. I guess it looks related to my problem. But I don't see a variable related to form-action field. What do I do? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
As for the button not doing anything, it was reported in bug #12321, which has been fixed by nijel in 45e558c (as of now unreleased). |
Beta Was this translation helpful? Give feedback.
-
Weblate has a GitHub-specific code to fetch all user e-mail addresses from GitHub, something similar will be probably needed for GitHub Enterprise: weblate/weblate/accounts/pipeline.py Lines 114 to 118 in 768cd3b |
Beta Was this translation helpful? Give feedback.
-
Fixed in 5.7.1 |
Beta Was this translation helpful? Give feedback.
As for the button not doing anything, it was reported in bug #12321, which has been fixed by nijel in 45e558c (as of now unreleased).