Documentation
¶
Overview ¶
Package ssoauth wraps the AWS SSO OIDC device-authorization flow and the SSO portal APIs needed to list accounts and roles. The access token is cached under ~/.aws/sso/cache using the same filename hashing scheme the official aws CLI uses, so the cache is shared with `aws sso login`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is bound to a single SSO start URL + region.
func New ¶
New constructs a Client. It loads AWS SDK config with the given region so SSO API endpoints resolve correctly even on a host with no profile.
func (*Client) ListAccountRoles ¶
ListAccountRoles returns the role names assigned to the SSO user for the given account, sorted alphabetically.
func (*Client) ListAccounts ¶
ListAccounts walks the SSO portal pages and returns all accounts the access token is allowed to see, sorted by name.