Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Fix django authorization redirect by correctly checking validity of credentials #651

Merged
merged 1 commit into from Sep 16, 2016

Conversation

waprin
Copy link
Contributor

@waprin waprin commented Sep 16, 2016

I was checking for credentials but I need to use the has_credentials method for cases of existing but invalid credentials.

@theacodes
Copy link
Contributor

@waprin looks like we have a coverage miss:

oauth2client/contrib/django_util/views.py              73      1     14      1    98%   187, 186->187

Can you fix?

@theacodes theacodes self-assigned this Sep 16, 2016
@theacodes theacodes changed the title Fix bug by correctly checking validity of credentials Fix django authorization redirect by correctly checking validity of credentials Sep 16, 2016
@waprin
Copy link
Contributor Author

waprin commented Sep 16, 2016

Yep fixing now

@waprin waprin force-pushed the django_bugfix branch 2 times, most recently from e90d961 to e9ae1f8 Compare September 16, 2016 22:32
@waprin
Copy link
Contributor Author

waprin commented Sep 16, 2016

@jonparrott Looks like all my tests pass and django_util now has 100% coverage, failing on cover because of other code I think?

@waprin
Copy link
Contributor Author

waprin commented Sep 16, 2016

Ah never mind, now I see still some missing lines in the tests themselves

@theacodes theacodes merged commit 8a6e3b2 into googleapis:master Sep 16, 2016
@@ -170,21 +170,22 @@ def oauth2_authorize(request):
A redirect to Google OAuth2 Authorization.
"""
return_url = request.GET.get('return_url', None)
if not return_url:

This comment was marked as spam.

@waprin waprin mentioned this pull request Sep 20, 2016
@pferate pferate mentioned this pull request Oct 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants