19 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_JWT_JSON_TOKEN_H
20 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_JWT_JSON_TOKEN_H
25 #include <openssl/rsa.h>
31 #define GRPC_JWT_OAUTH2_AUDIENCE "https://oauth2.googleapis.com/token"
48 const char* json_string);
67 typedef char* (*grpc_jwt_encode_and_sign_override)(
void grpc_auth_json_key_destruct(grpc_auth_json_key *json_key)
Definition: json_token.cc:133
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:67
void grpc_jwt_encode_and_sign_set_override(grpc_jwt_encode_and_sign_override func)
Definition: json_token.cc:285
grpc_auth_json_key grpc_auth_json_key_create_from_json(const grpc_core::Json &json)
Definition: json_token.cc:70
int grpc_auth_json_key_is_valid(const grpc_auth_json_key *json_key)
Definition: json_token.cc:65
grpc_auth_json_key grpc_auth_json_key_create_from_string(const char *json_string)
Definition: json_token.cc:125
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:265
Analogous to struct timespec.
Definition: gpr_types.h:47
Definition: json_token.h:35
const char * type
Definition: json_token.h:36
RSA * private_key
Definition: json_token.h:40
char * private_key_id
Definition: json_token.h:37
char * client_id
Definition: json_token.h:38
char * client_email
Definition: json_token.h:39