Documentation
¶
Index ¶
- func ClearAuthCookie(w http.ResponseWriter)
- func GetAndClearErrorFlashMessage(w http.ResponseWriter, r *http.Request) string
- func GetAndClearOAuthStateCookie(w http.ResponseWriter, r *http.Request) (state, provider string)
- func GetAndClearSuccessFlashMessage(w http.ResponseWriter, r *http.Request) string
- func LoadAuthCookie(e *core.RequestEvent) error
- func SetAuthCookie(w http.ResponseWriter, token string)
- func SetFlashError(w http.ResponseWriter, message string)
- func SetFlashSuccess(w http.ResponseWriter, message string)
- func SetOAuthStateCookie(w http.ResponseWriter, state, provider string)
- type Config
- func (c *Config) ChangePasswordHandler(e *core.RequestEvent) error
- func (c *Config) ForgotPasswordHandler(e *core.RequestEvent) error
- func (c *Config) Locales(fsys fs.FS)
- func (c *Config) LoginHandler(e *core.RequestEvent) error
- func (c *Config) MakeHandler(f func(c *Config, e *core.RequestEvent) error) func(e *core.RequestEvent) error
- func (c *Config) OAuthCallbackHandler(e *core.RequestEvent) error
- func (c *Config) OAuthInitHandler(e *core.RequestEvent) error
- func (c *Config) RegisterHandler(e *core.RequestEvent) error
- func (c *Config) RegisterRoutes(se *core.ServeEvent)
- func (c *Config) Render(e *core.RequestEvent, file string, params, errors map[string]any) error
- func (c *Config) RenderHandler(file string) func(e *core.RequestEvent) error
- func (c *Config) ResetPasswordFormHandler(e *core.RequestEvent) error
- func (c *Config) ResetPasswordHandler(e *core.RequestEvent) error
- func (c *Config) SetGlobal(key string, value any) *Config
- func (config *Config) VerifyCrossOrigin(e *core.RequestEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAuthCookie ¶
func ClearAuthCookie(w http.ResponseWriter)
func GetAndClearErrorFlashMessage ¶
func GetAndClearErrorFlashMessage(w http.ResponseWriter, r *http.Request) string
func GetAndClearOAuthStateCookie ¶
func GetAndClearOAuthStateCookie(w http.ResponseWriter, r *http.Request) (state, provider string)
func GetAndClearSuccessFlashMessage ¶
func GetAndClearSuccessFlashMessage(w http.ResponseWriter, r *http.Request) string
func LoadAuthCookie ¶
func LoadAuthCookie(e *core.RequestEvent) error
func SetFlashError ¶
func SetFlashError(w http.ResponseWriter, message string)
func SetFlashSuccess ¶
func SetFlashSuccess(w http.ResponseWriter, message string)
func SetOAuthStateCookie ¶
func SetOAuthStateCookie(w http.ResponseWriter, state, provider string)
OAuth cookies
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ChangePasswordHandler ¶
func (c *Config) ChangePasswordHandler(e *core.RequestEvent) error
func (*Config) ForgotPasswordHandler ¶
func (c *Config) ForgotPasswordHandler(e *core.RequestEvent) error
func (*Config) LoginHandler ¶
func (c *Config) LoginHandler(e *core.RequestEvent) error
func (*Config) MakeHandler ¶
func (c *Config) MakeHandler(f func(c *Config, e *core.RequestEvent) error) func(e *core.RequestEvent) error
Transforms a function into a handler that can be used with the core.RequestEvent
func (*Config) OAuthCallbackHandler ¶
func (c *Config) OAuthCallbackHandler(e *core.RequestEvent) error
func (*Config) OAuthInitHandler ¶
func (c *Config) OAuthInitHandler(e *core.RequestEvent) error
func (*Config) RegisterHandler ¶
func (c *Config) RegisterHandler(e *core.RequestEvent) error
func (*Config) RegisterRoutes ¶
func (c *Config) RegisterRoutes(se *core.ServeEvent)
func (*Config) RenderHandler ¶
func (c *Config) RenderHandler(file string) func(e *core.RequestEvent) error
func (*Config) ResetPasswordFormHandler ¶
func (c *Config) ResetPasswordFormHandler(e *core.RequestEvent) error
func (*Config) ResetPasswordHandler ¶
func (c *Config) ResetPasswordHandler(e *core.RequestEvent) error
func (*Config) SetGlobal ¶
Set a global variable that will be available in all templates This function is chainable.
func (*Config) VerifyCrossOrigin ¶
func (config *Config) VerifyCrossOrigin(e *core.RequestEvent) error
Click to show internal directories.
Click to hide internal directories.