/external/python/oauth2client/tests/ |
D | test_jwt.py | 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) [all …]
|
D | test_service_account.py | 391 self.jwt = service_account._JWTAccessCredentials( 402 token_info = self.jwt.get_access_token() 414 token_info = self.jwt.get_access_token() 425 token_info = self.jwt.get_access_token() 440 token_info = self.jwt.get_access_token( 456 self.jwt.revoke(None) 459 self.assertTrue(self.jwt.create_scoped_required()) 462 self.jwt._private_key_pkcs12 = '' 463 self.jwt._private_key_password = '' 465 new_credentials = self.jwt.create_scoped('dummy_scope') [all …]
|
D | test_crypt.py | 275 jwt = b'.'.join([header, payload, signature]) 279 crypt.verify_signed_jwt_with_certs(jwt, None) 302 jwt = b'.'.join([header, payload, signature]) 305 jwt, certs, audience=audience)
|
/external/grpc-grpc/test/core/security/ |
D | jwt_verifier_test.cc | 355 char* jwt = nullptr; in test_jwt_verifier_google_email_issuer_success() local 362 jwt = grpc_jwt_encode_and_sign(&key, expected_audience, expected_lifetime, in test_jwt_verifier_google_email_issuer_success() 365 GPR_ASSERT(jwt != nullptr); in test_jwt_verifier_google_email_issuer_success() 366 grpc_jwt_verifier_verify(verifier, nullptr, jwt, expected_audience, in test_jwt_verifier_google_email_issuer_success() 370 gpr_free(jwt); in test_jwt_verifier_google_email_issuer_success() 388 char* jwt = nullptr; in test_jwt_verifier_custom_email_issuer_success() local 395 jwt = grpc_jwt_encode_and_sign(&key, expected_audience, expected_lifetime, in test_jwt_verifier_custom_email_issuer_success() 398 GPR_ASSERT(jwt != nullptr); in test_jwt_verifier_custom_email_issuer_success() 399 grpc_jwt_verifier_verify(verifier, nullptr, jwt, expected_audience, in test_jwt_verifier_custom_email_issuer_success() 403 gpr_free(jwt); in test_jwt_verifier_custom_email_issuer_success() [all …]
|
D | create_jwt.cc | 34 char* jwt; in create_jwt() local 46 jwt = grpc_jwt_encode_and_sign( in create_jwt() 50 if (jwt == nullptr) { in create_jwt() 55 fprintf(stdout, "%s\n", jwt); in create_jwt() 56 gpr_free(jwt); in create_jwt()
|
D | json_token_test.cc | 385 char* jwt = jwt_encode_and_sign_func(&json_key); in test_jwt_encode_and_sign() local 386 const char* dot = strchr(jwt, '.'); in test_jwt_encode_and_sign() 388 parsed_header = parse_json_part_from_jwt(jwt, static_cast<size_t>(dot - jwt), in test_jwt_encode_and_sign() 392 offset = static_cast<size_t>(dot - jwt) + 1; in test_jwt_encode_and_sign() 396 dot = strchr(jwt + offset, '.'); in test_jwt_encode_and_sign() 399 jwt + offset, static_cast<size_t>(dot - (jwt + offset)), &scratchpad); in test_jwt_encode_and_sign() 402 offset = static_cast<size_t>(dot - jwt) + 1; in test_jwt_encode_and_sign() 406 dot = strchr(jwt + offset, '.'); in test_jwt_encode_and_sign() 408 b64_signature = jwt + offset; in test_jwt_encode_and_sign() 409 check_jwt_signature(b64_signature, json_key.private_key, jwt, offset - 1); in test_jwt_encode_and_sign() [all …]
|
D | verify_jwt.cc | 79 const char* jwt = nullptr; in main() local 85 gpr_cmdline_add_string(cl, "jwt", "JSON web token to verify", &jwt); in main() 88 if (jwt == nullptr || aud == nullptr) { in main() 100 grpc_jwt_verifier_verify(verifier, sync.pollset, jwt, aud, in main()
|
/external/rust/crates/grpcio-sys/grpc/test/core/security/ |
D | jwt_verifier_test.cc | 373 char* jwt = nullptr; in test_jwt_verifier_google_email_issuer_success() local 380 jwt = grpc_jwt_encode_and_sign(&key, expected_audience, expected_lifetime, in test_jwt_verifier_google_email_issuer_success() 383 GPR_ASSERT(jwt != nullptr); in test_jwt_verifier_google_email_issuer_success() 384 grpc_jwt_verifier_verify(verifier, nullptr, jwt, expected_audience, in test_jwt_verifier_google_email_issuer_success() 389 gpr_free(jwt); in test_jwt_verifier_google_email_issuer_success() 407 char* jwt = nullptr; in test_jwt_verifier_custom_email_issuer_success() local 414 jwt = grpc_jwt_encode_and_sign(&key, expected_audience, expected_lifetime, in test_jwt_verifier_custom_email_issuer_success() 417 GPR_ASSERT(jwt != nullptr); in test_jwt_verifier_custom_email_issuer_success() 418 grpc_jwt_verifier_verify(verifier, nullptr, jwt, expected_audience, in test_jwt_verifier_custom_email_issuer_success() 423 gpr_free(jwt); in test_jwt_verifier_custom_email_issuer_success() [all …]
|
D | create_jwt.cc | 34 char* jwt; in create_jwt() local 46 jwt = grpc_jwt_encode_and_sign( in create_jwt() 50 if (jwt == nullptr) { in create_jwt() 55 fprintf(stdout, "%s\n", jwt); in create_jwt() 56 gpr_free(jwt); in create_jwt()
|
D | json_token_test.cc | 338 char* jwt = jwt_encode_and_sign_func(&json_key); in test_jwt_encode_and_sign() local 339 const char* dot = strchr(jwt, '.'); in test_jwt_encode_and_sign() 342 parse_json_part_from_jwt(jwt, static_cast<size_t>(dot - jwt)); in test_jwt_encode_and_sign() 345 offset = static_cast<size_t>(dot - jwt) + 1; in test_jwt_encode_and_sign() 347 dot = strchr(jwt + offset, '.'); in test_jwt_encode_and_sign() 350 jwt + offset, static_cast<size_t>(dot - (jwt + offset))); in test_jwt_encode_and_sign() 353 offset = static_cast<size_t>(dot - jwt) + 1; in test_jwt_encode_and_sign() 355 dot = strchr(jwt + offset, '.'); in test_jwt_encode_and_sign() 357 b64_signature = jwt + offset; in test_jwt_encode_and_sign() 358 check_jwt_signature(b64_signature, json_key.private_key, jwt, offset - 1); in test_jwt_encode_and_sign() [all …]
|
D | verify_jwt.cc | 75 const char* jwt = nullptr; in main() local 81 gpr_cmdline_add_string(cl, "jwt", "JSON web token to verify", &jwt); in main() 84 if (jwt == nullptr || aud == nullptr) { in main() 96 grpc_jwt_verifier_verify(verifier, sync.pollset, jwt, aud, in main()
|
/external/python/oauth2client/oauth2client/ |
D | crypt.py | 207 def verify_signed_jwt_with_certs(jwt, certs, audience=None): argument 224 jwt = _helpers._to_bytes(jwt) 226 if jwt.count(b'.') != 2: 228 'Wrong number of segments in token: {0}'.format(jwt)) 230 header, payload, signature = jwt.split(b'.')
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/ |
D | jwt_credentials.cc | 82 char* jwt = nullptr; in get_request_metadata() local 86 jwt = grpc_jwt_encode_and_sign(&key_, context.service_url, jwt_lifetime_, in get_request_metadata() 88 if (jwt != nullptr) { in get_request_metadata() 89 std::string md_value = absl::StrCat("Bearer ", jwt); in get_request_metadata() 90 gpr_free(jwt); in get_request_metadata()
|
D | jwt_verifier.h | 110 grpc_pollset* pollset, const char* jwt,
|
D | jwt_verifier.cc | 849 grpc_pollset* pollset, const char* jwt, in grpc_jwt_verifier_verify() argument 858 const char* cur = jwt; in grpc_jwt_verifier_verify() 861 GPR_ASSERT(verifier != nullptr && jwt != nullptr && audience != nullptr && in grpc_jwt_verifier_verify() 878 signed_jwt_len = static_cast<size_t>(dot - jwt); in grpc_jwt_verifier_verify() 884 signature, jwt, signed_jwt_len, user_data, cb)); in grpc_jwt_verifier_verify()
|
/external/grpc-grpc/src/core/lib/security/credentials/jwt/ |
D | jwt_credentials.cc | 78 char* jwt = nullptr; in jwt_get_request_metadata() local 82 jwt = grpc_jwt_encode_and_sign(&c->key, context.service_url, in jwt_get_request_metadata() 84 if (jwt != nullptr) { in jwt_get_request_metadata() 86 gpr_asprintf(&md_value, "Bearer %s", jwt); in jwt_get_request_metadata() 87 gpr_free(jwt); in jwt_get_request_metadata()
|
D | jwt_verifier.h | 111 grpc_pollset* pollset, const char* jwt,
|
D | jwt_verifier.cc | 852 grpc_pollset* pollset, const char* jwt, in grpc_jwt_verifier_verify() argument 864 const char* cur = jwt; in grpc_jwt_verifier_verify() 866 GPR_ASSERT(verifier != nullptr && jwt != nullptr && audience != nullptr && in grpc_jwt_verifier_verify() 885 signed_jwt_len = static_cast<size_t>(dot - jwt); in grpc_jwt_verifier_verify() 891 signature, jwt, signed_jwt_len, user_data, cb)); in grpc_jwt_verifier_verify()
|
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/ |
D | check_on_pr.py | 24 import jwt 40 return jwt.encode(
|
/external/grpc-grpc/test/distrib/ruby/ |
D | distribtest.gemspec | 18 s.add_dependency 'jwt', '< 2.0'
|
/external/rust/crates/grpcio-sys/grpc/test/distrib/ruby/ |
D | distribtest.gemspec | 18 s.add_dependency 'jwt', '< 2.0'
|
/external/boringssl/src/util/fipstools/acvp/acvptool/test/vectors/ |
D | KAS-FFC-SSC.bz2 |
|
/external/oss-fuzz/projects/influxdb/ |
D | Dockerfile | 20 RUN go get github.com/dgrijalva/jwt-go
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | oauth_client.cc | 217 const string jwt = to_sign + "." + signature; in GetTokenFromServiceAccountJson() local 219 strings::StrCat("grant_type=", kGrantType, "&assertion=", jwt); in GetTokenFromServiceAccountJson()
|
/external/grpc-grpc/src/python/grpcio_tests/tests/interop/ |
D | client.py | 20 from google.auth import jwt as google_auth_jwt
|