0008-auth_saml-use-token-url-for-logout-69720.patch
src/authentic2_auth_saml/apps.py | ||
---|---|---|
55 | 55 |
] |
56 | 56 | |
57 | 57 |
def a2_hook_redirect_logout_list(self, request, **kwargs): |
58 |
from mellon.views import logout
|
|
58 |
from mellon.views import LogoutView
|
|
59 | 59 | |
60 |
if 'mellon_session' in request.session: |
|
61 |
response = logout(request) |
|
62 |
if 'Location' in response: |
|
63 |
return [response['Location']] |
|
64 |
return [] |
|
60 |
mellon_logout_url = LogoutView.make_logout_token_url(request, next_url='/logout/') |
|
61 |
if mellon_logout_url: |
|
62 |
return [mellon_logout_url] |
|
63 |
else: |
|
64 |
return [] |
|
65 |
- |