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

github oauth fails with a 404 #1256

Closed
working-name opened this issue Oct 16, 2016 · 2 comments
Closed

github oauth fails with a 404 #1256

working-name opened this issue Oct 16, 2016 · 2 comments
Assignees
Labels
question This is more a question for the support than an issue.

Comments

@working-name
Copy link

working-name commented Oct 16, 2016

Steps to reproduce

  1. deploy weblate from github
  2. run behind apache, wsgi
  3. load up the page, and try to login using github in an incognito browser. You'll be able to log in but upon redirect github.com's 404 page shows up.

Actual behaviour

tries to load this: https://github.com/login/oauth/authorize?scope=user:email&state=otaXFx65aSRIasr6sXyuXrbY0JMMkbDV&redirect_uri=https://domain.name/accounts/complete/github/?redirect_state=otaXFx65aSRIasr6sXyuXrbY0JMMkbDV&response_type=code&client_id= but bumps into a 404 error

Expected behaviour

python-social-auth should have properly completed the task

Server configuration

 * Weblate weblate-2.8-175-gb38b896
 * Python 2.7.9
 * Django 1.10.2
 * six 1.10.0
 * python-social-auth 0.2.21
 * Translate Toolkit 2.0.0b6
 * Whoosh 2.7.4
 * defusedxml 0.4.1
 * Git 2.1.4
 * Pillow (PIL) 1.1.7
 * dateutil 2.5.3
 * lxml 3.6.4
 * django-crispy-forms 1.6.0
 * compressor 2.1
 * djangorestframework 3.4.7
 * pyuca N/A
 * pyLibravatar N/A
 * Database backends: django.db.backends.mysql
@nijel
Copy link
Member

nijel commented Oct 18, 2016

The URL works fine if you provide correct credentials, are you sure your SOCIAL_AUTH_GITHUB_KEY and SOCIAL_AUTH_GITHUB_SECRET are correctly set?

@nijel nijel added the question This is more a question for the support than an issue. label Oct 18, 2016
@working-name
Copy link
Author

You're right, that was it. So sorry about that, I thought I had copied settings.py from the previous deployment.

@nijel nijel self-assigned this Oct 18, 2016
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