Пример #1
0
 def validate_token(self, context):
     token_id = context.get('subject_token_id')
     self.check_token(context)
     token_ref = self.token_api.get_token(context, token_id)
     token_data = token_factory.recreate_token_data(
         context, token_ref.get('token_data'), token_ref['expires'],
         token_ref.get('user'), token_ref.get('tenant'))
     return token_factory.render_token_data_response(token_id, token_data)
Пример #2
0
 def validate_token(self, context):
     token_id = context.get('subject_token_id')
     self.check_token(context)
     token_ref = self.token_api.get_token(token_id)
     token_data = token_factory.recreate_token_data(
         token_ref.get('token_data'),
         token_ref['expires'],
         token_ref.get('user'),
         token_ref.get('tenant'))
     return token_factory.render_token_data_response(token_id, token_data)