Crate aws_sso_flow

Source
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§

ProfileSource
A reference to a profile in AWS shared configuration.
Region
An AWS region.
SessionCredentials
AWS session credentials.
SsoApiError
An API error that occurred during authentication.
SsoCacheError
An error that occurred interacting with the cache during authentication.
SsoConfig
AWS SSO configuration.
SsoFlow
A configured AWS SSO authentication flow.
SsoFlowBuilder
Builder for SsoFlow.
SsoProfileError
An error indicating missing or invalid SSO configuration.

Enums§

SsoError
An error indicating either misconfiguration or a failure during authentication.
SsoFlowError
An error that occurred during the SSO authentication flow.

Traits§

SsoConfigSource
A source of SSO configuration.
VerificationPrompt
An SSO verification prompt.

Functions§

authenticate
Perform a default AWS SSO authentication flow with the given verification_prompt.