pub struct SsoCredentialsProvider { /* private fields */ }
Available on crate feature
sso
only.Expand description
SSO Credentials Provider
Note: This provider is part of the default credentials chain and is integrated with the profile-file provider.
This credentials provider will use cached SSO tokens stored in ~/.aws/sso/cache/<hash>.json
.
Two different values will be tried for <hash>
in order:
- The configured
session_name
. - The configured
start_url
.
Implementations§
Source§impl SsoCredentialsProvider
impl SsoCredentialsProvider
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a builder for SsoCredentialsProvider
Trait Implementations§
Source§impl Debug for SsoCredentialsProvider
impl Debug for SsoCredentialsProvider
Source§impl ProvideCredentials for SsoCredentialsProvider
impl ProvideCredentials for SsoCredentialsProvider
Source§fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a>where
Self: 'a,
fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a>where
Self: 'a,
Returns a future that provides credentials.
Source§fn fallback_on_interrupt(&self) -> Option<Credentials>
fn fallback_on_interrupt(&self) -> Option<Credentials>
Returns fallback credentials. Read more
Auto Trait Implementations§
impl Freeze for SsoCredentialsProvider
impl !RefUnwindSafe for SsoCredentialsProvider
impl Send for SsoCredentialsProvider
impl Sync for SsoCredentialsProvider
impl Unpin for SsoCredentialsProvider
impl !UnwindSafe for SsoCredentialsProvider
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.