marshal

package
v2.0.0-rc1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

types and constants for (un)marshalling Okta API

Index

Constants

View Source
const (
	UserAuthnStatusMFARequired     = "MFA_REQUIRED"
	UserAuthnStatusPasswordExpired = "PASSWORD_EXPIRED"
	UserAuthnStatusMFAChallenge    = "MFA_CHALLENGE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCause

type ErrorCause struct {
	ErrorSummary string `json:"errorSummary"`
}

type ErrorResponse

type ErrorResponse struct {
	ErrorCode    string `json:"errorCode"`
	ErrorSummary string `json:"errorSummary"`
	ErrorId      string `json:"errorId"`
	ErrorCauses  []ErrorCause
}

type StateToken

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

type UserAuthn

type UserAuthn struct {
	StateToken   string            `json:"stateToken"`
	SessionToken string            `json:"sessionToken"`
	ExpiresAt    string            `json:"expiresAt"`
	Status       string            `json:"status"`
	Embedded     UserAuthnEmbedded `json:"_embedded"`
	FactorResult string            `json:"factorResult"`
}

type UserAuthnEmbedded

type UserAuthnEmbedded struct {
	Factors []UserAuthnFactor `json:"factors"`
	Factor  UserAuthnFactor   `json:"factor"`
}

type UserAuthnFactor

type UserAuthnFactor struct {
	Id         string                  `json:"id"`
	FactorType string                  `json:"factorType"`
	Provider   string                  `json:"provider"`
	Embedded   UserAuthnFactorEmbedded `json:"_embedded"`
	Profile    UserAuthnFactorProfile  `json:"profile"`
}

type UserAuthnFactorEmbedded

type UserAuthnFactorEmbedded struct {
	Verification UserAuthnFactorEmbeddedVerification `json:"verification"`
	Challenge    UserAuthnFactorEmbeddedChallenge    `json:"challenge"`
}

type UserAuthnFactorEmbeddedChallenge

type UserAuthnFactorEmbeddedChallenge struct {
	Nonce           string `json:"nonce"`
	TimeoutSeconnds int    `json:"timeoutSeconds"`
}

type UserAuthnFactorEmbeddedVerification

type UserAuthnFactorEmbeddedVerification struct {
	Host         string                                   `json:"host"`
	Signature    string                                   `json:"signature"`
	FactorResult string                                   `json:"factorResult"`
	Links        UserAuthnFactorEmbeddedVerificationLinks `json:"_links"`
}
type UserAuthnFactorEmbeddedVerificationLinks struct {
	Complete UserAuthnFactorEmbeddedVerificationLinksComplete `json:"complete"`
}

type UserAuthnFactorEmbeddedVerificationLinksComplete

type UserAuthnFactorEmbeddedVerificationLinksComplete struct {
	Href string `json:"href"`
}

type UserAuthnFactorProfile

type UserAuthnFactorProfile struct {
	CredentialId string `json:"credentialId"`
	AppId        string `json:"appId"`
	Version      string `json:"version"`
}

Jump to

Keyboard shortcuts

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