pub type Token = Token;
Expand description
AWS Access Token
This access token type is used to authenticate to AWS services that use HTTP Bearer Auth with an AWS Builder ID such as CodeCatalyst.
For more details on tokens, see: https://oauth.net/2/access-tokens
Aliased Type§
struct Token(/* private fields */);
Implementations
Source§impl Token
impl Token
Sourcepub fn new(token: impl Into<String>, expiration: Option<SystemTime>) -> Token
pub fn new(token: impl Into<String>, expiration: Option<SystemTime>) -> Token
Constructs a new identity token for HTTP auth.
Sourcepub fn expiration(&self) -> Option<SystemTime>
pub fn expiration(&self) -> Option<SystemTime>
Returns the expiration time (if any) for this token.
Trait Implementations§
Source§impl ProvideToken for Token
impl ProvideToken for Token
Source§fn provide_token<'a>(&'a self) -> ProvideToken<'a> ⓘwhere
Self: 'a,
fn provide_token<'a>(&'a self) -> ProvideToken<'a> ⓘwhere
Self: 'a,
Returns a future that provides an access token.
Source§impl ResolveIdentity for Token
impl ResolveIdentity for Token
Source§fn resolve_identity<'a>(
&'a self,
_runtime_components: &'a RuntimeComponents,
_config_bag: &'a ConfigBag,
) -> IdentityFuture<'a>
fn resolve_identity<'a>( &'a self, _runtime_components: &'a RuntimeComponents, _config_bag: &'a ConfigBag, ) -> IdentityFuture<'a>
Asynchronously resolves an identity for a request using the given config.
Source§fn cache_location(&self) -> IdentityCacheLocation
fn cache_location(&self) -> IdentityCacheLocation
Returns the location of an identity cache associated with this identity resolver. Read more
Source§fn cache_partition(&self) -> Option<IdentityCachePartition>
fn cache_partition(&self) -> Option<IdentityCachePartition>
Returns the identity cache partition associated with this identity resolver. Read more