Struct aws_config::sso::credentials::SsoCredentialsProvider
source · 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>
Creates a shared type from an unshared type.