Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_JWT_JSON_TOKEN_H
20 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_JWT_JSON_TOKEN_H
27 #include <openssl/rsa.h>
33 #define GRPC_JWT_OAUTH2_AUDIENCE "https://oauth2.googleapis.com/token"
51 const char* json_string);
69 typedef char* (*grpc_jwt_encode_and_sign_override)(
void grpc_jwt_encode_and_sign_set_override(grpc_jwt_encode_and_sign_override func)
Definition: json_token.cc:315
int grpc_auth_json_key_is_valid(const grpc_auth_json_key *json_key)
Definition: json_token.cc:63
const char * type
Definition: json_token.h:38
char * private_key_id
Definition: json_token.h:39
grpc_auth_json_key grpc_auth_json_key_create_from_string(const char *json_string)
Definition: json_token.cc:123
RSA * private_key
Definition: json_token.h:42
char *(* grpc_jwt_encode_and_sign_override)(const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope)
Definition: json_token.h:69
void grpc_auth_json_key_destruct(grpc_auth_json_key *json_key)
Definition: json_token.cc:133
grpc_auth_json_key grpc_auth_json_key_create_from_json(const grpc_json *json)
Definition: json_token.cc:68
char * grpc_jwt_encode_and_sign(const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope)
Definition: json_token.cc:295
Analogous to struct timespec.
Definition: gpr_types.h:47
char * client_email
Definition: json_token.h:41
char * client_id
Definition: json_token.h:40
Definition: json_token.h:37