cookies

package
v1.0.1-herb-namespaced... Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieNameVerificationCode = "verificationCode"
	CookieNamePasswordReset    = "passwordReset"
	CookieNameAccountState     = "accountState"
	CookieNameAuth             = "_auth"
	LoginRequest               = "_loginRequest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStateCookie

type AccountStateCookie struct {
	State string `json:"state"`
	Nonce string `json:"nonce"`
}

type AuthCookie

type AuthCookie struct {
	Identity *proto_oidc_models.Identity `json:"identity"`
}

type GetAccountStateCookieResponse

type GetAccountStateCookieResponse struct {
	AccountStateCookie *AccountStateCookie `json:"accountStateCookie"`
}

type GetAuthCookieResponse

type GetAuthCookieResponse struct {
	AuthCookie *AuthCookie `json:"authCookie"`
}

type GetPasswordResetCookieResponse

type GetPasswordResetCookieResponse struct {
	PasswordReset *PasswordReset `json:"passwordReset"`
}

type GetVerificationCodeCookieResponse

type GetVerificationCodeCookieResponse struct {
	VerificationCode *VerificationCode `json:"verificationCode"`
}

type IWellknownCookies

type IWellknownCookies interface {
	SetVerificationCodeCookie(c echo.Context, request *SetVerificationCodeCookieRequest) error
	DeleteVerificationCodeCookie(c echo.Context)
	GetVerificationCodeCookie(c echo.Context) (*GetVerificationCodeCookieResponse, error)
	SetPasswordResetCookie(c echo.Context, request *SetPasswordResetCookieRequest) error
	DeletePasswordResetCookie(c echo.Context)
	GetPasswordResetCookie(c echo.Context) (*GetPasswordResetCookieResponse, error)
	SetAccountStateCookie(c echo.Context, request *SetAccountStateCookieRequest) error
	DeleteAccountStateCookie(c echo.Context)
	GetAccountStateCookie(c echo.Context) (*GetAccountStateCookieResponse, error)
	SetAuthCookie(c echo.Context, request *SetAuthCookieRequest) error
	DeleteAuthCookie(c echo.Context)
	GetAuthCookie(c echo.Context) (*GetAuthCookieResponse, error)

	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 SetPasswordResetCookieRequest

type SetPasswordResetCookieRequest struct {
	PasswordReset *PasswordReset `json:"passwordReset"`
}

type SetVerificationCodeCookieRequest

type SetVerificationCodeCookieRequest struct {
	VerificationCode *VerificationCode `json:"verificationCode"`
}

type VerificationCode

type VerificationCode struct {
	Code    string `json:"code"`
	Email   string `json:"email"`
	Subject string `json:"subject"`
}

Jump to

Keyboard shortcuts

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