Package aws_sdk_go_v2_sso_login implements the AWS SSO OIDC flow, including optionally opening a browser with the AWS SSO auth URL.
THIS IS NOT AN OFFICIAL PART OF aws-sdk-go-v2. This was not created, endorsed, checked by Amazon/AWS.
The official github.com/aws/aws-sdk-go-v2/service/sso
does not contain a login
function. AWS recommends using the AWS CLI aws sso login
which requires the user has the
AWS CLI installed on their system.
This package's goal is to remove the need for a user to have anything installed when using AWS SSO, and enabling developers to create tools that do not need to rely on the AWS CLI.
The user must have a ~/.aws/config
file with at least one [profile <profileName>]
section in it. Read
these AWS docs for more
information.
This package was inspired by, and aims to solve this GH issue: aws/aws-sdk-go-v2#1222