Home
last modified time | relevance | path

Searched refs:jwt (Results 1 – 3 of 3) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
Dtest_jwt.py79 def _check_jwt_failure(self, jwt, expected_error): argument
85 crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
105 jwt = self._create_signed_jwt()
109 contents = crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
114 jwt = self._create_signed_jwt()
121 jwt, 'some_audience_address@testing.gserviceaccount.com', http=http)
126 jwt = self._create_signed_jwt()
132 self.assertRaises(VerifyJwtTokenError, verify_id_token, jwt,
146 jwt = 'foo.%s.baz' % crypt._urlsafe_b64encode('{"a":"b"}')
147 self._check_jwt_failure(jwt, 'Invalid token signature')
[all …]
Dtest_oauth2client.py859 jwt = b'stuff.' + payload + b'.signature'
861 extracted = _extract_id_token(jwt)
868 jwt = b'stuff.' + payload
870 self.assertRaises(VerifyJwtTokenError, _extract_id_token, jwt)
1064 jwt = (base64.urlsafe_b64encode(b'stuff') + b'.' + payload + b'.' +
1070 "id_token": "%s"}""" % jwt).encode('utf-8')),
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dcrypt.py388 def verify_signed_jwt_with_certs(jwt, certs, audience): argument
405 segments = jwt.split('.')
408 raise AppIdentityError('Wrong number of segments in token: %s' % jwt)
428 raise AppIdentityError('Invalid token signature: %s' % jwt)