Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions auth0/v3/authentication/logout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from .base import AuthenticationBase
from urllib.parse import quote_plus
try:
from urllib.parse import quote_plus
except ImportError:
from urllib import quote_plus


class Logout(AuthenticationBase):
Expand Down Expand Up @@ -31,7 +34,8 @@ def logout(self, client_id, return_to, federated=False):

if federated is True:
return self.get(
'https://%s/v2/logout?federated&client_id=%s&returnTo=%s' % (self.domain, client_id, return_to),
'https://%s/v2/logout?federated&client_id=%s&returnTo=%s' % (self.domain, client_id,
return_to),
headers={'Content-Type': 'application/json'}
)
return self.get(
Expand Down