Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ContentType http header content type ContentType = "Content-Type" // ApplicationJSON content value for json ApplicationJSON = "application/json" // ApplicationXFORM content type value for web form ApplicationXFORM = "application/x-www-form-urlencoded" // UserAgentHeader user agent header UserAgentHeader = "User-Agent" // XOktaAWSCLIOperationHeader the okta aws cli header XOktaAWSCLIOperationHeader = "X-Okta-Aws-Cli-Operation" // XOktaAWSCLIDirectOperation direct op value for the x okta aws cli header XOktaAWSCLIDirectOperation = "direct" // XOktaAWSCLIWebOperation web op value for the x okta aws cli header XOktaAWSCLIWebOperation = "web" // XOktaAWSCLIM2MOperation m2m op value for the x okta aws cli header XOktaAWSCLIM2MOperation = "m2m" // PassThroughStringNewLineFMT string formatter to make lint happy PassThroughStringNewLineFMT = "%s\n" // AccessKeyID AWS creds access key ID AccessKeyID = "AccessKeyID" // Region region Region = "Region" // SecretAccessKey AWS creds secret access key SecretAccessKey = "SecretAccessKey" // SessionToken AWS creds session token SessionToken = "SessionToken" // DefaultAuthzID The default authorization server id DefaultAuthzID = "default" // Accept HTTP Accept header Accept = "Accept" // DotOktaDir The dot dirctory for Okta apps DotOktaDir = ".okta" // AccessTokenFileName file name of where the cached access token is places AccessTokenFileName = "awscli-access-token.json" )
Variables ¶
This section is empty.
Functions ¶
func CacheAccessToken ¶
func CacheAccessToken(cfg *config.Config, at *okta.AccessToken)
CacheAccessToken will cache the access token for later use if enabled. Silent if fails.
func CachedAccessToken ¶
func CachedAccessToken(cfg *config.Config) (at *okta.AccessToken)
CachedAccessToken will returned the cached access token if it exists and is not expired and --cached-access-token is enabled.
func CachedAccessTokenPath ¶
CachedAccessTokenPath Path to the cached access token in $HOME/.okta/awscli-access-token.json
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.