Only SSO upon validated tickets
This commit is contained in:
parent
0a3e95ba2b
commit
cf49573c61
1 changed files with 3 additions and 3 deletions
|
@ -41,13 +41,13 @@ class User(models.Model):
|
|||
def logout(self, request):
|
||||
async_list = []
|
||||
session = FuturesSession(executor=ThreadPoolExecutor(max_workers=10))
|
||||
for ticket in ServiceTicket.objects.filter(user=self):
|
||||
for ticket in ServiceTicket.objects.filter(user=self, validate=True):
|
||||
async_list.append(ticket.logout(request, session))
|
||||
ticket.delete()
|
||||
for ticket in ProxyTicket.objects.filter(user=self):
|
||||
for ticket in ProxyTicket.objects.filter(user=self, validate=True):
|
||||
async_list.append(ticket.logout(request, session))
|
||||
ticket.delete()
|
||||
for ticket in ProxyGrantingTicket.objects.filter(user=self):
|
||||
for ticket in ProxyGrantingTicket.objects.filter(user=self, validate=True):
|
||||
async_list.append(ticket.logout(request, session))
|
||||
ticket.delete()
|
||||
for future in async_list:
|
||||
|
|
Loading…
Reference in a new issue