Expand description
AWS SSO authentication flow.
See authenticate
for the main entrypoint to the crate.
use std::convert::Infallible;
let credentials = aws_sso_flow::authenticate(|url| async move {
println!("Go to {url} to sign in with SSO");
Ok::<_, Infallible>(())
}).await?;
Structs§
- Profile
Source - A reference to a profile in AWS shared configuration.
- Region
- An AWS region.
- Session
Credentials - AWS session credentials.
- SsoApi
Error - An API error that occurred during authentication.
- SsoCache
Error - An error that occurred interacting with the cache during authentication.
- SsoConfig
- AWS SSO configuration.
- SsoFlow
- A configured AWS SSO authentication flow.
- SsoFlow
Builder - Builder for
SsoFlow
. - SsoProfile
Error - An error indicating missing or invalid SSO configuration.
Enums§
- SsoError
- An error indicating either misconfiguration or a failure during authentication.
- SsoFlow
Error - An error that occurred during the SSO authentication flow.
Traits§
- SsoConfig
Source - A source of SSO configuration.
- Verification
Prompt - An SSO verification prompt.
Functions§
- authenticate
- Perform a default AWS SSO authentication flow with the given
verification_prompt
.