Lines Matching refs:jwt
83 def _check_jwt_failure(self, jwt, expected_error): argument
90 crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
109 jwt = self._create_signed_jwt()
113 contents = crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
118 jwt = self._create_signed_jwt()
125 jwt, 'some_audience_address@testing.gserviceaccount.com',
131 jwt = self._create_signed_jwt()
139 jwt, 'some_audience_address@testing.gserviceaccount.com')
145 jwt = self._create_signed_jwt()
153 client.verify_id_token(jwt, test_email, http=http)
165 jwt = b'.'.join([b'foo',
168 self._check_jwt_failure(jwt, 'Invalid token signature')
174 jwt = crypt.make_signed_jwt(signer, {
178 self._check_jwt_failure(jwt, 'No exp field in token')
181 jwt = crypt.make_signed_jwt(signer, {
185 self._check_jwt_failure(jwt, 'No iat field in token')
188 jwt = crypt.make_signed_jwt(signer, {
193 self._check_jwt_failure(jwt, 'Token used too early')
196 jwt = crypt.make_signed_jwt(signer, {
201 self._check_jwt_failure(jwt, 'Token used too late')
204 jwt = crypt.make_signed_jwt(signer, {
209 self._check_jwt_failure(jwt, 'Wrong recipient')