Fix bug: the renewing authentication, it is ok for the service to not require renew

This commit is contained in:
Valentin Samir
2016-07-06 13:15:19 +02:00
parent abf0200f87
commit 502135d6ca
4 changed files with 124 additions and 24 deletions

View File

@ -595,6 +595,12 @@ class Ticket(models.Model):
)
)
@staticmethod
def get_class(ticket):
for ticket_class in [ServiceTicket, ProxyTicket, ProxyGrantingTicket]:
if ticket.startswith(ticket_class.PREFIX):
return ticket_class
@python_2_unicode_compatible
class ServiceTicket(Ticket):