Documentation
¶
Index ¶
- Constants
- func AwsSamlLogin(oktaHref string, samlHref string, oktasession OktaSession) (string, error)
- func TotpFactorName(key string) string
- type AuthResponseEmbedded
- type AuthResponseFactor
- type AuthResponseFactorLinks
- type OktaAuthResponse
- type OktaLink
- type OktaSession
- type PushRequest
- type PushRequestResponse
- type PushRequestResponseLinks
- type TotpRequest
- type UserData
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AwsSamlLogin ¶
func AwsSamlLogin(oktaHref string, samlHref string, oktasession OktaSession) (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"` YakStatusCode int }
func Authenticate ¶
func Authenticate(oktaHref string, userData UserData) (OktaAuthResponse, error)
func VerifyPush ¶ added in v1.3.1
func VerifyPush(url string, pushRequestBody PushRequest) (OktaAuthResponse, error)
func VerifyTotp ¶
func VerifyTotp(url string, totpRequestBody TotpRequest) (OktaAuthResponse, error)
type OktaSession ¶ added in v1.5.7
func CreateSession ¶ added in v1.5.7
func CreateSession(oktaHref string, authResponse OktaAuthResponse) (*OktaSession, error)
TODO: DRY
func GetSession ¶ added in v1.5.7
func GetSession(oktaHref string, session *OktaSession) (*OktaSession, error)
TODO: DRY
type PushRequest ¶ added in v1.3.1
type PushRequest struct {
StateToken string `json:"stateToken"`
}
type PushRequestResponse ¶ added in v1.3.1
type PushRequestResponse struct { Links PushRequestResponseLinks `json:"_links"` FactorResult string `json:"factorResult"` }
type PushRequestResponseLinks ¶ added in v1.3.1
type PushRequestResponseLinks struct {
PollLink OktaLink `json:"next"`
}
type TotpRequest ¶
Click to show internal directories.
Click to hide internal directories.