Ejemplo n.º 1
0
 def test_openid_discovery(self):
     self._provider_ids[self._ISSUER] = self._PROVIDER_ID
     self._configs[IntegrationTest._ISSUER] = suppliers.IssuerUriConfig(
         True, None)
     user_info = self._authenticator.authenticate(
         IntegrationTest._AUTH_TOKEN, self._auth_info,
         IntegrationTest._SERVICE_NAME)
     self._assert_user_info_equals(
         tokens.UserInfo(IntegrationTest._JWT_CLAIMS), user_info)
Ejemplo n.º 2
0
 def test_verify_auth_token_with_jwks(self):
     url = get_url(IntegrationTest._JWKS_PATH)
     self._provider_ids[self._ISSUER] = self._PROVIDER_ID
     self._configs[IntegrationTest._ISSUER] = suppliers.IssuerUriConfig(
         False, url)
     user_info = self._authenticator.authenticate(
         IntegrationTest._AUTH_TOKEN, self._auth_info,
         IntegrationTest._SERVICE_NAME)
     self._assert_user_info_equals(
         tokens.UserInfo(IntegrationTest._JWT_CLAIMS), user_info)