Skip to content

Conversation

@akatsoulas
Copy link
Collaborator

  • Support post http method on logout.

@akatsoulas
Copy link
Collaborator Author

@johngian r?

@akatsoulas akatsoulas force-pushed the post-logout branch 3 times, most recently from da450f2 to 74249dd Compare January 10, 2017 15:36
@codecov-io
Copy link

codecov-io commented Jan 10, 2017

Current coverage is 94.59% (diff: 72.22%)

Merging #67 into master will decrease coverage by 2.02%

@@             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          

Powered by Codecov. Last update 45f9db9...98d7807

@@ -1,4 +1,7 @@
import requests
import urllib
Copy link
Collaborator

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

logout_view_path = import_from_settings('OIDC_OP_LOGOUT_VIEW', '')
if logout_view_path:
logout_view = import_string(logout_view_path)
logout_view(request)
Copy link
Collaborator

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).

def logout(request):
"""Log out the user from Auth0."""
url = 'https//' + import_from_settings('OIDC_OP_DOMAIN') + '/v2/logout'
url += '?' + urllib.urlencode({
Copy link
Collaborator

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.
@akatsoulas akatsoulas merged commit 5c0585c into mozilla:master Jan 11, 2017
@akatsoulas akatsoulas deleted the post-logout branch January 11, 2017 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants