Crates.io | aws_sso_flow |
lib.rs | aws_sso_flow |
version | 0.5.0 |
source | src |
created_at | 2022-09-19 18:38:38.60793 |
updated_at | 2024-04-12 20:45:38.849189 |
description | AWS SSO authentication flow |
homepage | |
repository | https://github.com/connec/aws_sso_flow |
max_upload_size | |
id | 669304 |
size | 109,639 |
aws_sso_flow
A Rust library for AWS SSO authentication.
The crate is published to crates.io and can be added to a project using cargo add
:
cargo add aws_sso_flow
Rustls is used for TLS support by default.
You can use a platform-specific implementation by disabling default features and enabling the native-tls
feature:
cargo add aws_sso_flow --no-default-features --features native-tls
See docs.rs for complete usage documentation.
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?;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.