Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertion ¶
type Assertion struct { XMLName xml.Name ID string `xml:"ID,attr"` Version string `xml:"Version,attr"` XS string `xml:"xmlns:xs,attr"` XSI string `xml:"xmlns:xsi,attr"` SAML string `xml:"saml,attr"` IssueInstant string `xml:"IssueInstant,attr"` Subject Subject Conditions Conditions AttributeStatement AttributeStatement }
type AttributeStatement ¶
type AttributeValue ¶
type Client ¶
type Client struct { OktaClient oktaclient.Client SAMLURL string // contains filtered or unexported fields }
Note: most methods cache their results; use `Reset` to clear.
func (*Client) GetAssumableRoles ¶
func (c *Client) GetAssumableRoles() ([]awsokta.AssumableRole, error)
Parses assumable roles from SAML assertion. Will call GetSAMLAssertionData on your behalf if it hasn't been called yet
func (*Client) GetSAMLResponseB64 ¶
type Conditions ¶
type Response ¶
type Response struct { XMLName xml.Name SAMLP string `xml:"xmlns:saml2p,attr"` SAML string `xml:"xmlns:saml2,attr"` SAMLSIG string `xml:"xmlns:saml2sig,attr"` Destination string `xml:"Destination,attr"` ID string `xml:"ID,attr"` Version string `xml:"Version,attr"` IssueInstant string `xml:"IssueInstant,attr"` InResponseTo string `xml:"InResponseTo,attr"` Assertion Assertion `xml:"Assertion"` Status Status `xml:"Status"` }
type SAMLAssertion ¶
type Status ¶
type Status struct { XMLName xml.Name StatusCode StatusCode `xml:"StatusCode"` }
type StatusCode ¶
type Subject ¶
type Subject struct { XMLName xml.Name NameID NameID SubjectConfirmation SubjectConfirmation }
type SubjectConfirmation ¶
type SubjectConfirmation struct { XMLName xml.Name Method string `xml:",attr"` SubjectConfirmationData SubjectConfirmationData }
type SubjectConfirmationData ¶
Click to show internal directories.
Click to hide internal directories.