Documentation ¶
Index ¶
- func AccountNotFoundResponse() error
- func BadRequestResponse() error
- func EmailInUseErrorResponse() error
- func InternalServerErrorResponse() error
- func InvalidEmailErrorResponse() error
- func InvalidTotpStateErrorResponse() error
- func NewErrorResponse(w http.ResponseWriter, statusCode int, message string) error
- func NewJSONResponse(w http.ResponseWriter, statusCode int, data interface{}) error
- func NewTextResponse(w http.ResponseWriter, statusCode int, message string) error
- func OAuth2ApplicationNameInUseErrorResponse() error
- func OAuth2ApplicationNotFoundResponse() error
- func OAuth2ApplicationTypeParameterNameMismatchErrorResponse() error
- func OAuth2InvalidScope(scope []string) error
- func OAuth2RedirectURIDoesNotMatch() error
- func OAuth2ScopeIsRequired() error
- func OAuth2UserNotFoundResponse() error
- func ReturnRedirectResponseToConsentPage(w http.ResponseWriter, r *http.Request, ...) error
- func SendActivateTotpSuccessResponse(secret, uri string, w http.ResponseWriter) error
- func SendDisableTotpSuccessResponse(w http.ResponseWriter) error
- func SendEnableTotpSuccessResponse(w http.ResponseWriter) error
- func SendLoginSuccessResponse(accessToken, refreshToken datatypes.Token, w http.ResponseWriter) error
- func SendNewOKResponse(w http.ResponseWriter) error
- func SendNewOKResponseMessage(w http.ResponseWriter, message string) error
- func SendRegisterSuccessResponse(w http.ResponseWriter) error
- func SendTokenExchangeSuccessResponse(accessToken, refreshToken datatypes.Token, w http.ResponseWriter) error
- func ToManyFailedAttemptsResponse() error
- func TwoFactorAuthenticationRequiredResponse() error
- func UnauthorizedErrorResponse(message string) error
- func ValidationErrorResponse(errors map[string]string) error
- type ActivateTotpSuccessResponse
- type GenericDataResponse
- type GenericResponse
- type LoginErrorResponse
- type LoginSuccessResponse
- type RegisterSuccessResponse
- type TotpErrorResponse
- type UnauthorizedErrorResponseType
- type ValidationErrorResponseType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountNotFoundResponse ¶
func AccountNotFoundResponse() error
func BadRequestResponse ¶
func BadRequestResponse() error
func EmailInUseErrorResponse ¶
func EmailInUseErrorResponse() error
func InternalServerErrorResponse ¶
func InternalServerErrorResponse() error
func InvalidEmailErrorResponse ¶
func InvalidEmailErrorResponse() error
func InvalidTotpStateErrorResponse ¶
func InvalidTotpStateErrorResponse() error
func NewErrorResponse ¶
func NewErrorResponse(w http.ResponseWriter, statusCode int, message string) error
func NewJSONResponse ¶
func NewJSONResponse(w http.ResponseWriter, statusCode int, data interface{}) error
func NewTextResponse ¶
func NewTextResponse(w http.ResponseWriter, statusCode int, message string) error
func OAuth2ApplicationNameInUseErrorResponse ¶
func OAuth2ApplicationNameInUseErrorResponse() error
func OAuth2ApplicationNotFoundResponse ¶
func OAuth2ApplicationNotFoundResponse() error
func OAuth2ApplicationTypeParameterNameMismatchErrorResponse ¶
func OAuth2ApplicationTypeParameterNameMismatchErrorResponse() error
func OAuth2InvalidScope ¶
func OAuth2RedirectURIDoesNotMatch ¶
func OAuth2RedirectURIDoesNotMatch() error
func OAuth2ScopeIsRequired ¶
func OAuth2ScopeIsRequired() error
func OAuth2UserNotFoundResponse ¶
func OAuth2UserNotFoundResponse() error
func ReturnRedirectResponseToConsentPage ¶
func ReturnRedirectResponseToConsentPage(w http.ResponseWriter, r *http.Request, authCode datatypes.OAuthAuthorizationCode) error
func SendActivateTotpSuccessResponse ¶
func SendActivateTotpSuccessResponse(secret, uri string, w http.ResponseWriter) error
func SendDisableTotpSuccessResponse ¶
func SendDisableTotpSuccessResponse(w http.ResponseWriter) error
func SendEnableTotpSuccessResponse ¶
func SendEnableTotpSuccessResponse(w http.ResponseWriter) error
func SendLoginSuccessResponse ¶
func SendLoginSuccessResponse(accessToken, refreshToken datatypes.Token, w http.ResponseWriter) error
func SendNewOKResponse ¶
func SendNewOKResponse(w http.ResponseWriter) error
func SendNewOKResponseMessage ¶
func SendNewOKResponseMessage(w http.ResponseWriter, message string) error
func SendRegisterSuccessResponse ¶
func SendRegisterSuccessResponse(w http.ResponseWriter) error
func SendTokenExchangeSuccessResponse ¶
func SendTokenExchangeSuccessResponse(accessToken, refreshToken datatypes.Token, w http.ResponseWriter) error
func ToManyFailedAttemptsResponse ¶
func ToManyFailedAttemptsResponse() error
func TwoFactorAuthenticationRequiredResponse ¶
func TwoFactorAuthenticationRequiredResponse() error
func ValidationErrorResponse ¶
Types ¶
type GenericDataResponse ¶
type GenericDataResponse struct { Error bool `json:"error"` Data interface{} `json:"data"` }
type GenericResponse ¶
type LoginErrorResponse ¶
type LoginSuccessResponse ¶
type RegisterSuccessResponse ¶
type TotpErrorResponse ¶
type UnauthorizedErrorResponseType ¶
type UnauthorizedErrorResponseType struct {}
Click to show internal directories.
Click to hide internal directories.