Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectAuthentication ¶
type DirectAuthentication struct {
// contains filtered or unexported fields
}
DirectAuthentication Object structure for headless authentication
func NewDirectAuthentication ¶
func NewDirectAuthentication(cfg *config.Config) (*DirectAuthentication, error)
NewDirectAuthentication New Direct Authentication constructor
func (*DirectAuthentication) EstablishIAMCredentials ¶
func (da *DirectAuthentication) EstablishIAMCredentials() error
EstablishIAMCredentials Full operation to fetch temporary IAM credentials and output them to preferred format.
The overall API interactions are as follows:
- CLI requests access token from custom authz server at /oauth2/{authzID}/v1/token - CLI triggers challenge to be pushed to Okta Verify over custom authz server at /oauth2/{authzID}/v1/challenge - CLI polls custom authz server at /oauth2/{authzID}/v1/token waiting for Okta Verify push to be acknowledged - CLI presents access token to AWS STS for temporary AWS IAM creds