Classes | Macros | Typedefs | Functions
json_token.h File Reference
#include <grpc/support/port_platform.h>
#include <openssl/crypto.h>
#include <grpc/impl/codegen/gpr_types.h>
#include "src/core/lib/json/json.h"
Include dependency graph for json_token.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  grpc_auth_json_key
 

Macros

#define GRPC_JWT_OAUTH2_AUDIENCE   "https://oauth2.googleapis.com/token"
 

Typedefs

typedef char *(* grpc_jwt_encode_and_sign_override) (const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope)
 

Functions

grpc_auth_json_key grpc_auth_json_key_create_from_json (const grpc_core::Json &json)
 
grpc_auth_json_key grpc_auth_json_key_create_from_string (const char *json_string)
 
void grpc_auth_json_key_destruct (grpc_auth_json_key *json_key)
 
int grpc_auth_json_key_is_valid (const grpc_auth_json_key *json_key)
 
char * grpc_jwt_encode_and_sign (const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope)
 
void grpc_jwt_encode_and_sign_set_override (grpc_jwt_encode_and_sign_override func)
 

Macro Definition Documentation

◆ GRPC_JWT_OAUTH2_AUDIENCE

#define GRPC_JWT_OAUTH2_AUDIENCE   "https://oauth2.googleapis.com/token"

Definition at line 32 of file json_token.h.

Typedef Documentation

◆ grpc_jwt_encode_and_sign_override

typedef 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 at line 68 of file json_token.h.

Function Documentation

◆ grpc_auth_json_key_create_from_json()

grpc_auth_json_key grpc_auth_json_key_create_from_json ( const grpc_core::Json json)

Definition at line 71 of file json_token.cc.

◆ grpc_auth_json_key_create_from_string()

grpc_auth_json_key grpc_auth_json_key_create_from_string ( const char *  json_string)

Definition at line 126 of file json_token.cc.

◆ grpc_auth_json_key_destruct()

void grpc_auth_json_key_destruct ( grpc_auth_json_key json_key)

Definition at line 134 of file json_token.cc.

◆ grpc_auth_json_key_is_valid()

int grpc_auth_json_key_is_valid ( const grpc_auth_json_key json_key)

Definition at line 66 of file json_token.cc.

◆ grpc_jwt_encode_and_sign()

char* grpc_jwt_encode_and_sign ( const grpc_auth_json_key json_key,
const char *  audience,
gpr_timespec  token_lifetime,
const char *  scope 
)

Definition at line 266 of file json_token.cc.

◆ grpc_jwt_encode_and_sign_set_override()

void grpc_jwt_encode_and_sign_set_override ( grpc_jwt_encode_and_sign_override  func)

Definition at line 286 of file json_token.cc.



grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:02:16