Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsolePrint ¶
ConsolePrint printf formatted warning messages.
func RemoveCachedAccessToken ¶
func RemoveCachedAccessToken() bool
RemoveCachedAccessToken Remove cached access token if it exists. Returns true if the file exists was reremoved, swallows errors otherwise.
Types ¶
type ClassicOrgError ¶
type ClassicOrgError struct {
// contains filtered or unexported fields
}
ClassicOrgError Convenience error class.
func NewClassicOrgError ¶
func NewClassicOrgError(orgDomain string) *ClassicOrgError
NewClassicOrgError ClassicOrgError constructor
func (*ClassicOrgError) Error ¶
func (e *ClassicOrgError) Error() string
Error Error interface error message
type WebSSOAuthentication ¶
type WebSSOAuthentication struct {
// contains filtered or unexported fields
}
WebSSOAuthentication Encapsulates the work of getting temporary IAM credentials through Okta's Web SSO authentication with an Okta AWS Federation Application.
The overall API interactions are as follows: - CLI starts device authorization at /oauth2/v1/device/authorize - CLI polls for access token from device auth at /oauth2/v1/token
- Access token granted by Okta once user is authorized
- CLI presents web SSO token to Okta AWS Fed app via POST to /login/token/sso for a SAML assertion - CLI presents SAML assertion to AWS STS for temporary AWS IAM creds
func NewWebSSOAuthentication ¶
func NewWebSSOAuthentication(cfg *config.Config) (token *WebSSOAuthentication, err error)
NewWebSSOAuthentication New Web SSO Authentication constructor
func (*WebSSOAuthentication) EstablishIAMCredentials ¶
func (w *WebSSOAuthentication) EstablishIAMCredentials() error
EstablishIAMCredentials Steps to establish an AWS session token.