pub struct SsoTokenProvider { /* private fields */ }
Available on crate feature
sso
only.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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.