Documentation ¶
Index ¶
- func AssureAwsKeyHubConfigDirectoryExists()
- func CheckIfAwsConfigFileExists()
- func CheckIfAwsKeyHubConfigFileExists()
- func ConfigureAwsKeyhub()
- func DecodeSAMLResponse(samlResponse string) []byte
- func RolesAndPrincipalsFromSamlResponse(samlResponseDecoded []byte) map[string]RolesAndPrincipals
- func StsAssumeRoleWithSAML(principalArn string, roleArn string, samlAssertion string) *sts.AssumeRoleWithSAMLOutput
- func VerifyIfLoginWasSuccessful(profile string, roleArn string)
- func WriteCredentialFile(profile string, credentials *sts.Credentials)
- type Assertion
- type Attribute
- type AttributeStatement
- type AuthorizeDeviceResponse
- type ExchangeResponse
- type GroupsMetadata
- type KeyhubAwsConfig
- type KeyhubConfig
- type KeyhubConfigFile
- type LoginResponse
- type Response
- type RolesAndPrincipals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssureAwsKeyHubConfigDirectoryExists ¶
func AssureAwsKeyHubConfigDirectoryExists()
func CheckIfAwsConfigFileExists ¶
func CheckIfAwsConfigFileExists()
func CheckIfAwsKeyHubConfigFileExists ¶
func CheckIfAwsKeyHubConfigFileExists()
func ConfigureAwsKeyhub ¶
func ConfigureAwsKeyhub()
func DecodeSAMLResponse ¶
func RolesAndPrincipalsFromSamlResponse ¶
func RolesAndPrincipalsFromSamlResponse(samlResponseDecoded []byte) map[string]RolesAndPrincipals
func StsAssumeRoleWithSAML ¶
func StsAssumeRoleWithSAML(principalArn string, roleArn string, samlAssertion string) *sts.AssumeRoleWithSAMLOutput
func WriteCredentialFile ¶
func WriteCredentialFile(profile string, credentials *sts.Credentials)
Types ¶
type Assertion ¶
type Assertion struct { XMLName xml.Name `xml:"Assertion"` AttributeStatement []AttributeStatement `xml:"AttributeStatement"` }
type AttributeStatement ¶
type AuthorizeDeviceResponse ¶
type AuthorizeDeviceResponse struct { UserCode string `json:"user_code"` DeviceCode string `json:"device_code"` Interval int `json:"interval"` VerificationUriComplete string `json:"verification_uri_complete"` VerificationUri string `json:"verification_uri"` ExpiresIn int `json:"expires_in"` }
func AuthorizeDevice ¶
func AuthorizeDevice() AuthorizeDeviceResponse
type ExchangeResponse ¶
type ExchangeResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` IssuedTokenType string `json:"issued_token_type"` ExpiresIn int `json:"expires_in"` }
func ExchangeToken ¶
func ExchangeToken(loginResponse LoginResponse) ExchangeResponse
type GroupsMetadata ¶
type KeyhubAwsConfig ¶
type KeyhubAwsConfig struct {
AssumeDuration int64 `json:"assumeDuration"`
}
type KeyhubConfig ¶
type KeyhubConfigFile ¶
type KeyhubConfigFile struct { Keyhub KeyhubConfig `json:"keyhub"` Aws KeyhubAwsConfig `json:"aws"` }
type LoginResponse ¶
type LoginResponse struct { AccessToken string `json:"access_token"` Scope string `json:"scope"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` }
func PollForAccessToken ¶
func PollForAccessToken(authorizeDeviceresponse AuthorizeDeviceResponse, noOfTimesPolled int) LoginResponse
type RolesAndPrincipals ¶
func SelectRoleAndPrincipal ¶
func SelectRoleAndPrincipal(roleArn string, rolesAndPrincipals map[string]RolesAndPrincipals) RolesAndPrincipals
Click to show internal directories.
Click to hide internal directories.