Esempio n. 1
0
 def test_reauthentication_necessary_with_valid_access_token(self):
     authn = OIDCAuthentication(
         self.app,
         provider_configuration_info={'issuer': ISSUER},
         client_registration_info={'client_id': 'foo'})
     access_token = 'test token'
     assert authn._reauthentication_necessary(access_token) is False
Esempio n. 2
0
 def test_reauthentication_necessary_with_valid_id_token(self):
     authn = OIDCAuthentication(self.app, provider_configuration_info={'issuer': ISSUER},
                                client_registration_info={'client_id': 'foo'})
     id_token = {'iss': ISSUER}
     assert authn._reauthentication_necessary(id_token) is False
Esempio n. 3
0
 def test_reauthentication_necessary_with_None(self):
     authn = OIDCAuthentication(
         self.app,
         provider_configuration_info={'issuer': ISSUER},
         client_registration_info={'client_id': 'foo'})
     assert authn._reauthentication_necessary(None) is True
Esempio n. 4
0
 def test_reauthentication_necessary_with_None(self):
     authn = OIDCAuthentication(self.app, provider_configuration_info={'issuer': ISSUER},
                                client_registration_info={'client_id': 'foo'})
     assert authn._reauthentication_necessary(None) is True