blob: dc8439cc2f47fd5c20df9bd21c43e5ff0593571d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class Authentication(object):
def __init__(self, username, token, uuid, session_id, user_attributes):
self.username = username
self.token = token
self.uuid = uuid
self.session_id = session_id
self._user_attributes = user_attributes
def is_admin(self):
return self._user_attributes.get('is_admin', False)
|