webcookie

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvanceAuthResponse

type AdvanceAuthResponse struct {
	Success bool                   `json:"success"`
	Result  map[string]interface{} `json:"Result"`
	Message string                 `json:"Message"`
}

AdvanceAuthResponse represents successful advance authentication response

func NewAdvanceAuthResponse

func NewAdvanceAuthResponse(input []byte) (*AdvanceAuthResponse, error)

NewAdvanceAuthResponse initiates AdvanceAuthResponse object

type AuthChallenge

type AuthChallenge struct {
	Mechanisms []AuthMechanism `json:"Mechanisms"`
}

AuthChallenge represents list of challenge mchanisims

type AuthMechanism

type AuthMechanism struct {
	AnswerType           string `json:"AnswerType"`           // Text, StartTextOob, StartOob
	Name                 string `json:"Name"`                 // UP, EMAIL, SMS, SQ, PF, OATH
	PartialAddress       string `json:"PartialAddress"`       // For Name = EMAIL
	PartialDeviceAddress string `json:"PartialDeviceAddress"` // For Name = SMS
	Question             string `json:"Question"`             // For Name = SQ
	PartialPhoneNumber   string `json:"PartialPhoneNumber"`   // For Name = PF
	UIPrompt             string `json:"UiPrompt"`             // For AnswerType = StartTextOob

	PromptMechChosen string `json:"PromptMechChosen"`
	PromptSelectMech string `json:"PromptSelectMech"`
	MechanismID      string `json:"MechanismId"`
}

AuthMechanism represents authentication mechanism

type AuthResponse

type AuthResponse struct {
	Success bool       `json:"success"`
	Result  AuthResult `json:"Result"`
	Message string     `json:"Message"`
}

AuthResponse represents successful authentication response

func NewAuthResponse

func NewAuthResponse(input []byte) (*AuthResponse, error)

NewAuthResponse initiates AuthResponse object

type AuthResult

type AuthResult struct {
	Version            string          `json:"Version"`
	SessionID          string          `json:"SessionId"`
	AllowLoginMfaCache bool            `json:"AllowLoginMfaCache"`
	Summary            string          `json:"Summary"`
	TenantID           string          `json:"TenantId"`
	Challenges         []AuthChallenge `json:"Challenges"`
}

AuthResult reppresents Result in reponse

type WebCookie

type WebCookie struct {
	restapi.RestClient
	ClientID       string
	ClientSecret   string
	SkipCertVerify bool
	SessionID      string
	TenantID       string
}

WebCookie represents a stateful web cookie client

func (*WebCookie) GetClient

func (c *WebCookie) GetClient() (*restapi.RestClient, error)

GetClient creates REST client

Jump to

Keyboard shortcuts

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