Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What context.DeserializeTicket(token) does?

I am trying to understand how refresh token works, and I have a pretty good idea, here an example http://bit.ly/1n9Tbot, but I found this context.DeserializeTicket(protectedTicket); I am not sure what it does, and practically doesn't have any documentation as you can see here http://bit.ly/1y7LTHt

enter image description here

Is it use to destroy the token? if it is to "deserialize", why does not return anything?

like image 720
Jaider Avatar asked Jan 29 '15 03:01

Jaider


1 Answers

context.DeserializeTicket()

is similar to

context.SetTicket()

in that they both set the context's ticket.

The difference is that DeserializeTicket takes a string, which is a serialized ticket.

This is useful for me because I save the serialized ticket (context.SerializeTicket()) in my database.

like image 138
apohl Avatar answered Oct 30 '22 11:10

apohl