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

Revisar configuración de OAUTH de Google #3

Open
sGerli opened this issue Feb 3, 2021 · 0 comments
Open

Revisar configuración de OAUTH de Google #3

sGerli opened this issue Feb 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@sGerli
Copy link
Owner

sGerli commented Feb 3, 2021

Esta es un poco mas sencilla que la de Facebook, no estoy teniendo problemas con la validación de URL, pero si con el redirecciona a Django.

2021-02-03T13:41:13.185972+00:00 app[web.1]: ERROR 2021-02-03 08:41:12 Internal Server Error: /complete/google-oauth2/
2021-02-03T13:41:13.186001+00:00 app[web.1]: Traceback (most recent call last):
2021-02-03T13:41:13.186002+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
2021-02-03T13:41:13.186003+00:00 app[web.1]:     response = self.process_exception_by_middleware(e, request)
2021-02-03T13:41:13.186003+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
2021-02-03T13:41:13.186004+00:00 app[web.1]:     response = wrapped_callback(request, *callback_args, **callback_kwargs)
2021-02-03T13:41:13.186005+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
2021-02-03T13:41:13.186005+00:00 app[web.1]:     response = view_func(request, *args, **kwargs)
2021-02-03T13:41:13.186009+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
2021-02-03T13:41:13.186009+00:00 app[web.1]:     return view_func(*args, **kwargs)
2021-02-03T13:41:13.186099+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/apps/django_app/utils.py", line 51, in wrapper
2021-02-03T13:41:13.186100+00:00 app[web.1]:     return func(request, backend, *args, **kwargs)
2021-02-03T13:41:13.186101+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/apps/django_app/views.py", line 28, in complete
2021-02-03T13:41:13.186101+00:00 app[web.1]:     redirect_name=REDIRECT_FIELD_NAME, *args, **kwargs)
2021-02-03T13:41:13.186102+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/actions.py", line 43, in do_complete
2021-02-03T13:41:13.186102+00:00 app[web.1]:     user = backend.complete(user=user, *args, **kwargs)
2021-02-03T13:41:13.186103+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/base.py", line 41, in complete
2021-02-03T13:41:13.186103+00:00 app[web.1]:     return self.auth_complete(*args, **kwargs)
2021-02-03T13:41:13.186104+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/utils.py", line 229, in wrapper
2021-02-03T13:41:13.186104+00:00 app[web.1]:     return func(*args, **kwargs)
2021-02-03T13:41:13.186104+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/oauth.py", line 387, in auth_complete
2021-02-03T13:41:13.186105+00:00 app[web.1]:     *args, **kwargs)
2021-02-03T13:41:13.186106+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/utils.py", line 229, in wrapper
2021-02-03T13:41:13.186106+00:00 app[web.1]:     return func(*args, **kwargs)
2021-02-03T13:41:13.186107+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/oauth.py", line 392, in do_auth
2021-02-03T13:41:13.186107+00:00 app[web.1]:     data = self.user_data(access_token, *args, **kwargs)
2021-02-03T13:41:13.186109+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/google.py", line 73, in user_data
2021-02-03T13:41:13.186110+00:00 app[web.1]:     'alt': 'json'
2021-02-03T13:41:13.186110+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/base.py", line 229, in get_json
2021-02-03T13:41:13.186110+00:00 app[web.1]:     return self.request(url, *args, **kwargs).json()
2021-02-03T13:41:13.186111+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/base.py", line 225, in request
2021-02-03T13:41:13.186111+00:00 app[web.1]:     response.raise_for_status()
2021-02-03T13:41:13.186112+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/requests/models.py", line 940, in raise_for_status
2021-02-03T13:41:13.186112+00:00 app[web.1]:     raise HTTPError(http_error_msg, response=self)
2021-02-03T13:41:13.186114+00:00 app[web.1]: HTTPError: 403 Client Error: Forbidden for url: https://www.googleapis.com/plus/v1/people/me?alt=json&access_token=************************************
@sGerli sGerli added the bug Something isn't working label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant