Versions in this module Expand all Collapse all v1 v1.8.4 Oct 8, 2017 Changes in this version + var ErrConfigFileNotFound = errors.New("aws credentials file not found") + var ErrConfigHomeNotFound = errors.New("user home directory not found") + var ErrCredentialsHomeNotFound = errors.New("user home directory not found") + var ErrCredentialsNotFound = errors.New("aws credentials not found") + var ErrMissingAssertion = ErrMissingElement + func AssignPrincipals(awsRoles []*AWSRole, awsAccounts []*AWSAccount) + func ExtractAwsRoles(data []byte) ([]string, error) + func PromptForLoginDetails(loginDetails *LoginDetails) error + type ADFS2Client struct + func NewADFS2Client(skipVerify bool) (*ADFS2Client, error) + func (ac *ADFS2Client) Authenticate(loginDetails *LoginDetails) (string, error) + type ADFSClient struct + func NewADFSClient(skipVerify bool) (*ADFSClient, error) + func (ac *ADFSClient) Authenticate(loginDetails *LoginDetails) (string, error) + type AWSAccount struct + Name string + Roles []*AWSRole + func ExtractAWSAccounts(data []byte) ([]*AWSAccount, error) + func ParseAWSAccounts(samlAssertion string) ([]*AWSAccount, error) + type AWSRole struct + Name string + PrincipalARN string + RoleARN string + func LocateRole(awsRoles []*AWSRole, roleName string) (*AWSRole, error) + func ParseAWSRoles(roles []string) ([]*AWSRole, error) + func PromptForAWSRoleSelection(accounts []*AWSAccount) (*AWSRole, error) + type AuthRequest struct + Password string + Username string + type ConfigLoader struct + Filename string + Profile string + func NewConfigLoader(profile string) *ConfigLoader + func (p *ConfigLoader) LoadHostname() (string, error) + func (p *ConfigLoader) LoadProvider(defaultValue string) (string, error) + func (p *ConfigLoader) LoadUsername() (string, error) + func (p *ConfigLoader) SaveHostname(hostname string) error + func (p *ConfigLoader) SaveProvider(provider string) error + func (p *ConfigLoader) SaveUsername(username string) error + type CredentialsProvider struct + Filename string + Profile string + func NewSharedCredentials(profile string) *CredentialsProvider + func (p *CredentialsProvider) CredsExists() (bool, error) + func (p *CredentialsProvider) Load() (string, string, string, error) + func (p *CredentialsProvider) Save(id, secret, token string) error + type ErrMissingElement struct + Attribute string + Tag string + func (e ErrMissingElement) Error() string + type JumpCloudClient struct + func NewJumpCloudClient(skipVerify bool) (*JumpCloudClient, error) + func (jc *JumpCloudClient) Authenticate(loginDetails *LoginDetails) (string, error) + type KeyCloakClient struct + func NewKeyCloakClient(skipVerify bool) (*KeyCloakClient, error) + func (kc *KeyCloakClient) Authenticate(loginDetails *LoginDetails) (string, error) + type LoginDetails struct + Hostname string + Password string + Username string + func (ld *LoginDetails) Validate() error + type OktaClient struct + func NewOktaClient(skipVerify bool) (*OktaClient, error) + func (oc *OktaClient) Authenticate(loginDetails *LoginDetails) (string, error) + type PingFedClient struct + func NewPingFedClient(skipVerify bool) (*PingFedClient, error) + func (ac *PingFedClient) Authenticate(loginDetails *LoginDetails) (string, error) + type Provider int + const ADFS + const Ping + type SAMLClient interface + Authenticate func(loginDetails *LoginDetails) (string, error) + func NewSAMLClient(opts *SAMLOptions) (SAMLClient, error) + type SAMLOptions struct + Provider string + SkipVerify bool + type VerifyRequest struct + StateToken string