#include <grpc/support/port_platform.h>
#include <atomic>
#include <string>
#include <utility>
#include "absl/status/statusor.h"
#include "absl/types/optional.h"
#include <grpc/grpc_security.h>
#include <grpc/impl/codegen/gpr_types.h>
#include <grpc/support/sync.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/lib/http/httpcli.h"
#include "src/core/lib/http/parser.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/polling_entity.h"
#include "src/core/lib/json/json.h"
#include "src/core/lib/promise/activity.h"
#include "src/core/lib/promise/arena_promise.h"
#include "src/core/lib/security/credentials/credentials.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/transport/transport.h"
#include "src/core/lib/uri/uri_parser.h"
Go to the source code of this file.
Classes | |
class | grpc_access_token_credentials |
struct | grpc_auth_refresh_token |
struct | grpc_credentials_metadata_request |
class | grpc_google_refresh_token_credentials |
struct | grpc_oauth2_pending_get_request_metadata |
class | grpc_oauth2_token_fetcher_credentials |
Namespaces | |
grpc_core | |
Macros | |
#define | GRPC_STS_POST_MINIMAL_BODY_FORMAT_STRING |
Functions | |
grpc_auth_refresh_token | grpc_auth_refresh_token_create_from_json (const grpc_core::Json &json) |
grpc_auth_refresh_token | grpc_auth_refresh_token_create_from_string (const char *json_string) |
void | grpc_auth_refresh_token_destruct (grpc_auth_refresh_token *refresh_token) |
Destructs the object. More... | |
int | grpc_auth_refresh_token_is_valid (const grpc_auth_refresh_token *refresh_token) |
Returns 1 if the object is valid, 0 otherwise. More... | |
grpc_credentials_status | grpc_oauth2_token_fetcher_credentials_parse_server_response (const struct grpc_http_response *response, absl::optional< grpc_core::Slice > *token_value, grpc_core::Duration *token_lifetime) |
grpc_core::RefCountedPtr< grpc_call_credentials > | grpc_refresh_token_credentials_create_from_auth_refresh_token (grpc_auth_refresh_token token) |
absl::StatusOr< URI > | grpc_core::ValidateStsCredentialsOptions (const grpc_sts_credentials_options *options) |
#define GRPC_STS_POST_MINIMAL_BODY_FORMAT_STRING |
Definition at line 55 of file oauth2_credentials.h.
grpc_auth_refresh_token grpc_auth_refresh_token_create_from_json | ( | const grpc_core::Json & | json | ) |
Creates a refresh token object from parsed json. Returns an invalid object if a parsing error has been encountered.
Definition at line 79 of file oauth2_credentials.cc.
grpc_auth_refresh_token grpc_auth_refresh_token_create_from_string | ( | const char * | json_string | ) |
Creates a refresh token object from string. Returns an invalid object if a parsing error has been encountered.
Definition at line 115 of file oauth2_credentials.cc.
void grpc_auth_refresh_token_destruct | ( | grpc_auth_refresh_token * | refresh_token | ) |
Destructs the object.
Definition at line 127 of file oauth2_credentials.cc.
int grpc_auth_refresh_token_is_valid | ( | const grpc_auth_refresh_token * | refresh_token | ) |
Returns 1 if the object is valid, 0 otherwise.
Definition at line 73 of file oauth2_credentials.cc.
grpc_credentials_status grpc_oauth2_token_fetcher_credentials_parse_server_response | ( | const struct grpc_http_response * | response, |
absl::optional< grpc_core::Slice > * | token_value, | ||
grpc_core::Duration * | token_lifetime | ||
) |
grpc_core::RefCountedPtr<grpc_call_credentials> grpc_refresh_token_credentials_create_from_auth_refresh_token | ( | grpc_auth_refresh_token | token | ) |
Definition at line 476 of file oauth2_credentials.cc.