Struct aws_config::sso::token::SsoTokenProvider
source · pub struct SsoTokenProvider { /* private fields */ }
Expand description
SSO Token Provider
This token provider will use cached SSO tokens stored in ~/.aws/sso/cache/<hash>.json
.
<hash>
is computed based on the configured session_name
.
If possible, the cached token will be refreshed when it gets close to expiring.
Implementations§
Trait Implementations§
source§impl Debug for SsoTokenProvider
impl Debug for SsoTokenProvider
source§impl ProvideToken for SsoTokenProvider
impl ProvideToken for SsoTokenProvider
source§fn provide_token<'a>(&'a self) -> ProvideTokenFuture<'a>where
Self: 'a,
fn provide_token<'a>(&'a self) -> ProvideTokenFuture<'a>where
Self: 'a,
Returns a future that provides an access token.
source§impl ResolveIdentity for SsoTokenProvider
impl ResolveIdentity for SsoTokenProvider
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
Auto Trait Implementations§
impl Freeze for SsoTokenProvider
impl !RefUnwindSafe for SsoTokenProvider
impl Send for SsoTokenProvider
impl Sync for SsoTokenProvider
impl Unpin for SsoTokenProvider
impl !UnwindSafe for SsoTokenProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.