Exemplo n.º 1
0
def read_persistent_client_session_data(principal):
    '''
    Given a principal return the stored session data for that
    principal from the persistent secure storage.

    Raises ValueError if unable to perform the action for any reason.
    '''

    try:
        return session_storage.get_data(principal, CCACHE_COOKIE_KEY)
    except Exception as e:
        raise ValueError(str(e))
Exemplo n.º 2
0
Arquivo: rpc.py Projeto: stlaz/freeipa
def read_persistent_client_session_data(principal):
    '''
    Given a principal return the stored session data for that
    principal from the persistent secure storage.

    Raises ValueError if unable to perform the action for any reason.
    '''

    try:
        return session_storage.get_data(principal, CCACHE_COOKIE_KEY)
    except Exception as e:
        raise ValueError(str(e))
Exemplo n.º 3
0
 def test_03(self):
     session_storage.remove_data(self.principal, self.key)
     try:
         session_storage.get_data(self.principal, self.key)
     except session_storage.KRB5Error:
         pass
Exemplo n.º 4
0
 def test_02(self):
     data = session_storage.get_data(self.principal, self.key)
     assert(data == self.data)
Exemplo n.º 5
0
 def test_03(self):
     session_storage.remove_data(self.principal, self.key)
     try:
         session_storage.get_data(self.principal, self.key)
     except session_storage.KRB5Error:
         pass
Exemplo n.º 6
0
 def test_02(self):
     data = session_storage.get_data(self.principal, self.key)
     assert(data == self.data)