pub type TokenProviderWrapper = CachedTokenProvider<TokenProviderWrapperInner>;

Aliased Type§

struct TokenProviderWrapper { /* private fields */ }

Implementations§

source§

impl TokenProviderWrapper

source

pub fn get_default_provider() -> Result<Option<Self>, Error>

Get a TokenProvider following the “Google Default Credentials” flow, in order:

If it appears that a method is being used, but is actually invalid, eg GOOGLE_APPLICATION_CREDENTIALS is set but the file doesn’t exist or contains invalid JSON, an error is returned with the details

source

pub fn kind(&self) -> &'static str

Gets the kind of token provider

source

pub fn is_service_account_provider(&self) -> bool

source

pub fn is_metadata_server_provider(&self) -> bool

source

pub fn is_end_user_credentials_provider(&self) -> bool