Documentation ¶
Index ¶
- func GetAttributeValuesFromAssertion(assertion, attributeName string) ([]string, error)
- func IsValidSamlAssertion(assertion string) bool
- func NormalizePath(path string) string
- type Amazon
- func (amz *Amazon) AssumeRole(roleArn, principalArn string) (*sts.Credentials, error)
- func (amz *Amazon) GetAssertion() string
- func (*Amazon) GetRoleAttrName() string
- func (*Amazon) GetRoleSessionNameAttrName() string
- func (*Amazon) GetSessionDurationAttrName() string
- func (amz *Amazon) ParseRoles() ([]*Role, error)
- type Google
- type Role
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAttributeValuesFromAssertion ¶
GetAttributeValuesFromAssertion parse SAML Assertion in form of XML document to return a list of attribute values from attribute name
func IsValidSamlAssertion ¶
func NormalizePath ¶
Types ¶
type Amazon ¶
func NewAmazonConfig ¶
func (*Amazon) AssumeRole ¶
func (amz *Amazon) AssumeRole(roleArn, principalArn string) (*sts.Credentials, error)
AssumeRole is going to call sts.AssumeRoleWithSAMLInput to assume to a specific role
func (*Amazon) GetAssertion ¶
func (*Amazon) GetRoleAttrName ¶
GetRoleAttrName return XML attribute name for Role property
func (*Amazon) GetRoleSessionNameAttrName ¶
GetRoleSessionNameAttrName return XML attribute name for RoleSessionName property
func (*Amazon) GetSessionDurationAttrName ¶
GetSessionDurationAttrName return XML attribute name for SessionDuration property
func (*Amazon) ParseRoles ¶
type Google ¶
func NewGoogleConfig ¶
Click to show internal directories.
Click to hide internal directories.