Home
last modified time | relevance | path

Searched refs:json_key (Results 1 – 15 of 15) sorted by relevance

/third_party/grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc65 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key) { in grpc_auth_json_key_is_valid() argument
66 return (json_key != nullptr) && in grpc_auth_json_key_is_valid()
67 strcmp(json_key->type, GRPC_AUTH_JSON_TYPE_INVALID) != 0; in grpc_auth_json_key_is_valid()
133 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key) { in grpc_auth_json_key_destruct() argument
134 if (json_key == nullptr) return; in grpc_auth_json_key_destruct()
135 json_key->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_json_key_destruct()
136 if (json_key->client_id != nullptr) { in grpc_auth_json_key_destruct()
137 gpr_free(json_key->client_id); in grpc_auth_json_key_destruct()
138 json_key->client_id = nullptr; in grpc_auth_json_key_destruct()
140 if (json_key->private_key_id != nullptr) { in grpc_auth_json_key_destruct()
[all …]
Djson_token.h43 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key);
56 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key);
62 char* grpc_jwt_encode_and_sign(const grpc_auth_json_key* json_key,
68 const grpc_auth_json_key* json_key, const char* audience,
Djwt_credentials.cc143 static char* redact_private_key(const char* json_key) { in redact_private_key() argument
145 Json json = Json::Parse(json_key, &error); in redact_private_key()
155 const char* json_key, gpr_timespec token_lifetime, void* reserved) { in grpc_service_account_jwt_access_credentials_create() argument
157 char* clean_json = redact_private_key(json_key); in grpc_service_account_jwt_access_credentials_create()
173 grpc_auth_json_key_create_from_string(json_key), token_lifetime) in grpc_service_account_jwt_access_credentials_create()
/third_party/grpc/test/core/security/
Djson_token_test.cc99 grpc_auth_json_key json_key = in test_parse_json_key_success() local
101 GPR_ASSERT(grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_success()
102 GPR_ASSERT(json_key.type != nullptr && in test_parse_json_key_success()
103 strcmp(json_key.type, "service_account") == 0); in test_parse_json_key_success()
104 GPR_ASSERT(json_key.private_key_id != nullptr && in test_parse_json_key_success()
105 strcmp(json_key.private_key_id, in test_parse_json_key_success()
107 GPR_ASSERT(json_key.client_id != nullptr && in test_parse_json_key_success()
108 strcmp(json_key.client_id, in test_parse_json_key_success()
111 GPR_ASSERT(json_key.client_email != nullptr && in test_parse_json_key_success()
112 strcmp(json_key.client_email, in test_parse_json_key_success()
[all …]
Dcredentials_test.cc1169 const grpc_auth_json_key* json_key, const char* scope, in validate_jwt_encode_and_sign_params() argument
1171 GPR_ASSERT(grpc_auth_json_key_is_valid(json_key)); in validate_jwt_encode_and_sign_params()
1172 GPR_ASSERT(json_key->private_key != nullptr); in validate_jwt_encode_and_sign_params()
1173 GPR_ASSERT(RSA_check_key(json_key->private_key)); in validate_jwt_encode_and_sign_params()
1174 GPR_ASSERT(json_key->type != nullptr && in validate_jwt_encode_and_sign_params()
1175 strcmp(json_key->type, "service_account") == 0); in validate_jwt_encode_and_sign_params()
1176 GPR_ASSERT(json_key->private_key_id != nullptr && in validate_jwt_encode_and_sign_params()
1177 strcmp(json_key->private_key_id, in validate_jwt_encode_and_sign_params()
1179 GPR_ASSERT(json_key->client_id != nullptr && in validate_jwt_encode_and_sign_params()
1180 strcmp(json_key->client_id, in validate_jwt_encode_and_sign_params()
[all …]
/third_party/grpc/test/cpp/interop/
Dclient_helper.cc54 static std::string json_key; in GetServiceAccountJsonKey() local
55 if (json_key.empty()) { in GetServiceAccountJsonKey()
59 json_key = key_stream.str(); in GetServiceAccountJsonKey()
61 return json_key; in GetServiceAccountJsonKey()
98 std::string json_key = GetServiceAccountJsonKey(); in CreateChannelForTestCase() local
102 : ServiceAccountJWTAccessCredentials(json_key, in CreateChannelForTestCase()
Dinterop_client.h97 bool DoPerRpcCreds(const std::string& json_key);
Dinterop_client.cc259 bool InteropClient::DoPerRpcCreds(const std::string& json_key) { in DoPerRpcCreds() argument
268 ServiceAccountJWTAccessCredentials(json_key, token_lifetime.count()); in DoPerRpcCreds()
279 GPR_ASSERT(json_key.find(response.username()) != std::string::npos); in DoPerRpcCreds()
/third_party/grpc/src/ruby/pb/test/
Dclient.rb321 json_key = File.read(ENV[AUTH_ENV])
322 wanted_email = MultiJson.load(json_key)['client_email']
332 json_key = File.read(ENV[AUTH_ENV])
333 wanted_email = MultiJson.load(json_key)['client_email']
349 json_key = File.read(ENV[AUTH_ENV])
350 wanted_email = MultiJson.load(json_key)['client_email']
368 json_key = File.read(ENV[AUTH_ENV])
369 wanted_email = MultiJson.load(json_key)['client_email']
/third_party/grpc/src/cpp/client/
Dsecure_credentials.cc323 const std::string& json_key, long token_lifetime_seconds) { in ServiceAccountJWTAccessCredentials() argument
333 json_key.c_str(), lifetime, nullptr)); in ServiceAccountJWTAccessCredentials()
/third_party/grpc/include/grpcpp/security/
Dcredentials_impl.h184 const std::string& json_key,
Dcredentials.h201 const grpc::string& json_key,
/third_party/grpc/include/grpc/
Dgrpc_security.h329 grpc_service_account_jwt_access_credentials_create(const char* json_key,
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dgrpc.pxi543 const char *json_key,
/third_party/grpc/src/ruby/ext/grpc/
Drb_grpc_imports.generated.h374 …*(*grpc_service_account_jwt_access_credentials_create_type)(const char* json_key, gpr_timespec tok…