okta

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: MIT Imports: 9 Imported by: 0

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

func TotpFactorName(key string) string

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 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 OktaLink struct {
	Href string `json:"href"`
}

type TotpRequest

type TotpRequest struct {
	StateToken string `json:"stateToken"`
	PassCode   string `json:"passCode"`
}

type UserData

type UserData struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL