sudo python
import keystone
from keystone.token import token_formatters
formatter = token_formatters.TokenFormatter()
t = "gAAAAABd6Wl0RnnFOcy-q6aFWlr__bDcxk-GFFrLZsDh3z38Abg0iH5yFOJP7QyOVZ1SUhlIqxgID89hsZnubsM5hsbQSsYLujhU1_Zz9hlowb0chks9mogf4Pp9f1JFkr3FVQaCv2MN-ykpARLSpoV9c3m-7EFASaUNwMgysXC734598mKmWbI"
from keystone import server
server.configure()
validated_dict = formatter.validate_token(t)
validated_dict
>>> validated_dict
('a647d82c28aa4267bcf2ea99c328cd48', ['password'], [u'd6yYRIWASaKrjKTRwoGyNA'], None, None, '66cbc35f0b99430987357c2526945f8b', None, None, None, None, None, None, '2019-12-05T21:38:53.000000Z', '2019-12-05T22:38:53.000000Z')
>>>
import keystone
from keystone.token import token_formatters
formatter = token_formatters.TokenFormatter()
t = "gAAAAABd6Wl0RnnFOcy-q6aFWlr__bDcxk-GFFrLZsDh3z38Abg0iH5yFOJP7QyOVZ1SUhlIqxgID89hsZnubsM5hsbQSsYLujhU1_Zz9hlowb0chks9mogf4Pp9f1JFkr3FVQaCv2MN-ykpARLSpoV9c3m-7EFASaUNwMgysXC734598mKmWbI"
from keystone import server
server.configure()
validated_dict = formatter.validate_token(t)
validated_dict
>>> validated_dict
('a647d82c28aa4267bcf2ea99c328cd48', ['password'], [u'd6yYRIWASaKrjKTRwoGyNA'], None, None, '66cbc35f0b99430987357c2526945f8b', None, None, None, None, None, None, '2019-12-05T21:38:53.000000Z', '2019-12-05T22:38:53.000000Z')
>>>
No comments:
Post a Comment