Documentation ¶
Index ¶
- Constants
- type AccountStateCookie
- type AuthCookie
- type DeleteExternalOauth2CookieRequest
- type GetAccountStateCookieResponse
- type GetAuthCookieResponse
- type GetExternalOauth2CookieRequest
- type GetExternalOauth2CookieResponse
- type GetPasswordResetCookieResponse
- type GetVerificationCodeCookieResponse
- type IWellknownCookies
- type PasswordReset
- type SetAccountStateCookieRequest
- type SetAuthCookieRequest
- type SetExternalOauth2CookieRequest
- type SetPasswordResetCookieRequest
- type SetVerificationCodeCookieRequest
- type VerificationCode
Constants ¶
View Source
const ( CookieNameVerificationCode = "_verificationCode" CookieNamePasswordReset = "_passwordReset" CookieNameAccountState = "_accountState" CookieNameAuth = "_auth" LoginRequest = "_loginRequest" CookieNameExternalOauth2StateTemplate = "_externalOauth2State_{state}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStateCookie ¶
type AuthCookie ¶
type AuthCookie struct {
Identity *proto_oidc_models.Identity `json:"identity"`
}
type DeleteExternalOauth2CookieRequest ¶
type DeleteExternalOauth2CookieRequest struct {
State string `json:"state"`
}
type GetAccountStateCookieResponse ¶
type GetAccountStateCookieResponse struct {
AccountStateCookie *AccountStateCookie `json:"accountStateCookie"`
}
type GetAuthCookieResponse ¶
type GetAuthCookieResponse struct {
AuthCookie *AuthCookie `json:"authCookie"`
}
type GetExternalOauth2CookieRequest ¶
type GetExternalOauth2CookieRequest struct {
State string `json:"state"`
}
type GetExternalOauth2CookieResponse ¶
type GetExternalOauth2CookieResponse struct { State string `json:"state"` ExternalOAuth2State *proto_oidc_models.ExternalOauth2State `json:"externalOAuth2State"` }
type GetPasswordResetCookieResponse ¶
type GetPasswordResetCookieResponse struct {
PasswordReset *PasswordReset `json:"passwordReset"`
}
type GetVerificationCodeCookieResponse ¶
type GetVerificationCodeCookieResponse struct {
VerificationCode *VerificationCode `json:"verificationCode"`
}
type IWellknownCookies ¶
type IWellknownCookies interface { // External OAuth2 Cookie //--------------------------------------------------------------------- SetExternalOauth2Cookie(c echo.Context, request *SetExternalOauth2CookieRequest) error DeleteExternalOauth2Cookie(c echo.Context, request *DeleteExternalOauth2CookieRequest) error GetExternalOauth2Cookie(c echo.Context, request *GetExternalOauth2CookieRequest) (*GetExternalOauth2CookieResponse, error) // Verification Code Cookie //--------------------------------------------------------------------- SetVerificationCodeCookie(c echo.Context, request *SetVerificationCodeCookieRequest) error DeleteVerificationCodeCookie(c echo.Context) GetVerificationCodeCookie(c echo.Context) (*GetVerificationCodeCookieResponse, error) // Password Reset Cookie //--------------------------------------------------------------------- SetPasswordResetCookie(c echo.Context, request *SetPasswordResetCookieRequest) error DeletePasswordResetCookie(c echo.Context) GetPasswordResetCookie(c echo.Context) (*GetPasswordResetCookieResponse, error) // Account State Cookie //--------------------------------------------------------------------- SetAccountStateCookie(c echo.Context, request *SetAccountStateCookieRequest) error DeleteAccountStateCookie(c echo.Context) GetAccountStateCookie(c echo.Context) (*GetAccountStateCookieResponse, error) // Auth Cookie //--------------------------------------------------------------------- SetAuthCookie(c echo.Context, request *SetAuthCookieRequest) error DeleteAuthCookie(c echo.Context) GetAuthCookie(c echo.Context) (*GetAuthCookieResponse, error) // Insecure Cookies //--------------------------------------------------------------------- SetInsecureCookie(c echo.Context, name string, value interface{}) error DeleteInsecureCookie(c echo.Context, name string) GetInsecureCookie(c echo.Context, name string) (interface{}, error) }
type PasswordReset ¶
type PasswordReset struct {
Subject string `json:"subject"`
}
type SetAccountStateCookieRequest ¶
type SetAccountStateCookieRequest struct {
AccountStateCookie *AccountStateCookie `json:"accountStateCookie"`
}
type SetAuthCookieRequest ¶
type SetAuthCookieRequest struct {
AuthCookie *AuthCookie `json:"authCookie"`
}
type SetExternalOauth2CookieRequest ¶
type SetExternalOauth2CookieRequest struct { State string `json:"state"` ExternalOAuth2State *proto_oidc_models.ExternalOauth2State `json:"externalOAuth2State"` }
type SetPasswordResetCookieRequest ¶
type SetPasswordResetCookieRequest struct {
PasswordReset *PasswordReset `json:"passwordReset"`
}
type SetVerificationCodeCookieRequest ¶
type SetVerificationCodeCookieRequest struct {
VerificationCode *VerificationCode `json:"verificationCode"`
}
type VerificationCode ¶
Click to show internal directories.
Click to hide internal directories.