Skip to content

Commit

Permalink
Merge pull request #402 from mozilla/pr-386
Browse files Browse the repository at this point in the history
Add GET method to OIDCLogoutView
  • Loading branch information
johngian committed Mar 21, 2021
2 parents 378ecb0 + 92ccd9a commit 7c4c58c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mozilla_django_oidc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def redirect_url(self):
"""Return the logout url defined in settings."""
return self.get_settings('LOGOUT_REDIRECT_URL', '/')

def post(self, request):
def get(self, request):
"""Log out the user."""
logout_url = self.redirect_url

Expand All @@ -215,3 +215,7 @@ def post(self, request):
auth.logout(request)

return HttpResponseRedirect(logout_url)

def post(self, request):
"""Log out the user."""
return self.get(request)

0 comments on commit 7c4c58c

Please sign in to comment.