Documentation ¶
Index ¶
Constants ¶
View Source
const ( XML_QUERY_ROLES = "/samlp:Response/saml:Assertion/saml:AttributeStatement/saml:Attribute/saml:AttributeValue" XML_QUERY_EXPIRES = "/samlp:Response/saml:Assertion/saml:Conditions/@NotOnOrAfter" )
Variables ¶
This section is empty.
Functions ¶
func GetExpireTime ¶
When does this SAML expire?
func GetRolePrincipalARN ¶
get the ARN of the provided role ARN from the saml assertion
Types ¶
type STSSession ¶
type STSSession struct { RoleARN string `json:"ROLE_ARN"` AccessKeyID string `json:"AWS_ACCESS_KEY_ID"` SecretAccessKey string `json:"AWS_SECRET_ACCESS_KEY"` SessionToken string `json:"AWS_SESSION_TOKEN"` Expiration time.Time `json:"AWS_SESSION_EXPIRATION"` Provider string `json:"STS_PROVIDER"` Issuer string `json:"STS_ISSUER"` Region string `json:"-"` }
func GetSTSSession ¶
func (*STSSession) Expired ¶
func (s *STSSession) Expired() bool
func (*STSSession) GetExpireTimeString ¶
func (s *STSSession) GetExpireTimeString() string
Click to show internal directories.
Click to hide internal directories.