okta

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 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)

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