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
Click to show internal directories.
Click to hide internal directories.