-
-
Notifications
You must be signed in to change notification settings - Fork 993
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
GitHub OAuth configuration problem #1316
Comments
It reports to GitHub |
Hi, |
Sorry, I've never used it. Maybe you're not passing server name from the front end webserver to gunicorn? If using nginx (see http://docs.gunicorn.org/en/latest/deploy.html#nginx-configuration): proxy_set_header Host $http_host; |
I'll try to figure it out and post a solution here. Could you tell me how you know it reports to http://localhost:8002/ ? |
Having working example for gunicorn in our documentation would be great: https://docs.weblate.org/en/latest/admin/install.html#running-server Isn't your gunicorn running on 127.0.0.1:8002? |
Absolutely. It is. |
Because it reports http://localhost:8002/ ... the problem really is that gunicorn is not getting Host header from the web server. Not sure what you're using there, but you need to pass this header from original request to gunicorn (and others as well, for example Authorization header is needed or API access). |
At last ! I've spent so much time for such a simplistic solution. I don't know why, but the GitHub module reports to httpS://weblate.pyromaths.org and I've been struggling all day long thinking it was a simple http. |
Can you please share your Apache and gunicorn configuration so that it can be included in our documentation? |
- add gunicorn example (issue #1316) - add links to Django docs - remove lighttpd example as it used no longer existing fastcgi support Signed-off-by: Michal Čihař <michal@cihar.com>
I've tried to write example based on the online docs, but it's probably incomplete. It would be great if you could improve it: https://docs.weblate.org/en/latest/admin/install.html#sample-configuration-for-apache-and-gunicorn |
The only thing I have that is missing is the line I had to use SSL to let GitHub authenticate. So the SSL section is
|
Issue #1316 Signed-off-by: Michal Čihař <michal@cihar.com>
Hi,
I can't use the GitHub Authentication module.
I've set up a weblate module in Github with the following Authorization callback URL : https://weblate.pyromaths.org/
When I try to register a new user, I connect to my GitHub Account and then I'm back to the https://weblate.pyromaths.org/ homepage but with the following path in the address bar : https://weblate.pyromaths.org/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch&state=UWZoW2wQMcLdGfroUG2ylT9JIkJxWV5n
Any help would be welcome.
Thanks a lot.
Server configuration
./manage.py list_versions
The text was updated successfully, but these errors were encountered: