Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwsSamlLogin ¶
func AwsSamlLogin(oktaHref string, samlHref string, oktaAuthResponse OktaAuthResponse) (string, error)
func TotpFactorName ¶ added in v1.1.3
Types ¶
type AuthResponseEmbedded ¶
type AuthResponseEmbedded struct {
Factors []AuthResponseFactor `json:"factors"`
}
type AuthResponseFactor ¶
type AuthResponseFactor struct {
Links AuthResponseFactorLinks `json:"_links"`
FactorType string `json:"factorType"`
Provider string `json:"provider"`
}
type AuthResponseFactorLinks ¶
type AuthResponseFactorLinks struct {
VerifyLink OktaLink `json:"verify"`
}
type OktaAuthResponse ¶
type OktaAuthResponse struct {
StateToken string `json:"stateToken"`
SessionToken string `json:"sessionToken"`
ExpiresAt string `json:"expiresAt"`
Status string `json:"status"`
Embedded AuthResponseEmbedded `json:"_embedded"`
}
func Authenticate ¶
func Authenticate(oktaHref string, userData UserData) (OktaAuthResponse, error)
func VerifyTotp ¶
func VerifyTotp(url string, totpRequestBody TotpRequest) (OktaAuthResponse, error)
type TotpRequest ¶
Click to show internal directories.
Click to hide internal directories.