-
Notifications
You must be signed in to change notification settings - Fork 186
Logout user from OP. #67
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
Conversation
akatsoulas
commented
Nov 29, 2016
- Support post http method on logout.
|
@johngian r? |
da450f2 to
74249dd
Compare
Current coverage is 94.59% (diff: 72.22%)@@ master #67 diff @@
==========================================
Files 7 7
Lines 207 222 +15
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 200 210 +10
- Misses 7 12 +5
Partials 0 0
|
| @@ -1,4 +1,7 @@ | |||
| import requests | |||
| import urllib | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this import python 3 friendly
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode
mozilla_django_oidc/views.py
Outdated
| logout_view_path = import_from_settings('OIDC_OP_LOGOUT_VIEW', '') | ||
| if logout_view_path: | ||
| logout_view = import_string(logout_view_path) | ||
| logout_view(request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should be return logout_view(request).
74249dd to
eac41fb
Compare
| def logout(request): | ||
| """Log out the user from Auth0.""" | ||
| url = 'https//' + import_from_settings('OIDC_OP_DOMAIN') + '/v2/logout' | ||
| url += '?' + urllib.urlencode({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use urlencode.
* Support post http method on logout.
eac41fb to
98d7807
Compare