misc: force another auth.logout() after coming back from the IdP (#11394)
This commit is contained in:
parent
33dded157a
commit
80c748820a
|
@ -421,6 +421,10 @@ class LogoutView(ProfileMixin, LogMixin, View):
|
|||
def sp_logout_response(self, request):
|
||||
'''Launch a logout request to the identity provider'''
|
||||
self.profile = logout = utils.create_logout(request)
|
||||
# the user shouldn't be logged anymore at this point but it may happen
|
||||
# that a concurrent SSO happened in the meantime, so we do another
|
||||
# logout to make sure.
|
||||
auth.logout(request)
|
||||
try:
|
||||
logout.processResponseMsg(request.META['QUERY_STRING'])
|
||||
except lasso.LogoutPartialLogoutError:
|
||||
|
|
Loading…
Reference in New Issue