Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { StateToken string `json:"stateToken"` Status string `json:"status"` SessionToken string `json:"sessionToken"` Embedded struct { Factors []*Factor `json:"factors"` } `json:"_embedded"` }
Auth represents the authentication response from Okta.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains the necessary information needed to communicate with the Okta API.
func NewClient ¶
NewClient returns a newly configured Client with the given host and possible Okta session cookie. If the session cookie is empty, there was no session previously saved.
type Factor ¶
type Factor struct { FactorType string `json:"factorType"` Profile struct { CredentialID string `json:"credentialId"` PhoneNumber string `json:"phoneNumber"` } `json:"profile"` Links struct { Verify struct { Href string `json:"href"` } `json:"verify"` } `json:"_links"` }
Factor contains information about a specific MFA factor.
Click to show internal directories.
Click to hide internal directories.