Documentation ¶
Index ¶
- Constants
- type DirectiveDisplayPasswordPage
- type DirectiveEmailCodeChallenge
- type DirectiveRedirect
- type DirectiveStartExternalLogin
- type LoginPasswordRequest
- type LoginPasswordResponse
- type LoginPhaseOneRequest
- type LoginPhaseOneResponse
- type LogoutRequest
- type LogoutResponse
- type PasswordResetErrorReason
- type PasswordResetFinishRequest
- type PasswordResetFinishResponse
- type PasswordResetStartRequest
- type PasswordResetStartResponse
- type SignupErrorReason
- type SignupRequest
- type SignupResponse
- type VerifyCodeRequest
- type VerifyCodeResponse
Constants ¶
View Source
const ( DIRECTIVE_Redirect = "redirect" DIRECTIVE_StartExternalLogin = "startExternalLogin" DIRECTIVE_LoginPhaseOne_UserDoesNotExist = "userDoesNotExist" DIRECTIVE_LoginPhaseOne_DisplayPasswordPage = "displayPasswordPage" DIRECTIVE_VerifyCode_DisplayVerifyCodePage = "displayVerifyCodePage" DIRECTIVE_LoginPhaseOne_DisplayPhaseOnePage = "displayLoginPhaseOnePage" DIRECTIVE_PasswordReset_DisplayPasswordResetPage = "displayPasswordResetPage" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectiveEmailCodeChallenge ¶
type DirectiveEmailCodeChallenge struct {
Code string `json:"code"`
}
type DirectiveRedirect ¶
type DirectiveRedirect struct {
RedirectURI string `json:"redirectUri"`
}
type DirectiveStartExternalLogin ¶ added in v1.1.0
type DirectiveStartExternalLogin struct {
Slug string `json:"slug"`
}
type LoginPasswordRequest ¶
type LoginPasswordResponse ¶
type LoginPasswordResponse struct { Email string `json:"email" validate:"required"` Directive string `json:"directive" validate:"required"` DirectiveRedirect *DirectiveRedirect `json:"directiveRedirect,omitempty"` DirectiveEmailCodeChallenge *DirectiveEmailCodeChallenge `json:"directiveEmailCodeChallenge,omitempty"` }
type LoginPhaseOneRequest ¶
type LoginPhaseOneRequest struct {
Email string `json:"email" validate:"required"`
}
type LoginPhaseOneResponse ¶
type LoginPhaseOneResponse struct { Email string `json:"email" validate:"required"` Directive string `json:"directive" validate:"required"` DirectiveRedirect *DirectiveRedirect `json:"directiveRedirect,omitempty"` DirectiveDisplayPasswordPage *DirectiveDisplayPasswordPage `json:"directiveDisplayPasswordPage,omitempty"` DirectiveEmailCodeChallenge *DirectiveEmailCodeChallenge `json:"directiveEmailCodeChallenge,omitempty"` DirectiveStartExternalLogin *DirectiveStartExternalLogin `json:"directiveStartExternalLogin,omitempty"` }
type LogoutRequest ¶ added in v1.1.0
type LogoutRequest struct{}
type LogoutResponse ¶ added in v1.1.0
type PasswordResetErrorReason ¶
type PasswordResetErrorReason int
const ( PasswordResetErrorReason_NoError PasswordResetErrorReason = iota PasswordResetErrorReason_InvalidPassword )
type PasswordResetFinishResponse ¶
type PasswordResetFinishResponse struct { Directive string `json:"directive" validate:"required"` ErrorReason PasswordResetErrorReason `json:"errorReason,omitempty"` }
type PasswordResetStartRequest ¶
type PasswordResetStartRequest struct {
Email string `json:"email" validate:"required"`
}
type PasswordResetStartResponse ¶
type PasswordResetStartResponse struct { Email string `json:"email" validate:"required"` Directive string `json:"directive" validate:"required"` DirectiveEmailCodeChallenge *DirectiveEmailCodeChallenge `json:"directiveEmailCodeChallenge,omitempty"` }
type SignupErrorReason ¶
type SignupErrorReason int
const ( SignupErrorReason_NoError SignupErrorReason = iota SignupErrorReason_InvalidPassword SignupErrorReason_UserAlreadyExists )
type SignupRequest ¶
type SignupResponse ¶
type SignupResponse struct { Email string `json:"email" validate:"required"` Directive string `json:"directive" validate:"required"` DirectiveRedirect *DirectiveRedirect `json:"directiveRedirect,omitempty"` DirectiveEmailCodeChallenge *DirectiveEmailCodeChallenge `json:"directiveEmailCodeChallenge,omitempty"` DirectiveStartExternalLogin *DirectiveStartExternalLogin `json:"directiveStartExternalLogin,omitempty"` Message string `json:"message,omitempty"` ErrorReason SignupErrorReason `json:"errorReason,omitempty"` }
type VerifyCodeRequest ¶
type VerifyCodeRequest struct {
Code string `json:"code" validate:"required"`
}
type VerifyCodeResponse ¶
type VerifyCodeResponse struct { Directive string `json:"directive" validate:"required"` DirectiveRedirect *DirectiveRedirect `json:"directiveRedirect,omitempty"` }
Click to show internal directories.
Click to hide internal directories.