auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler user session auth handler. Uses Google OAuth.

func NewHandler

func NewHandler(
	googleAuth *auth.GoogleOAuthManager,
	users *user.Service,
	enabledProviders []auth.ProviderType,
	logger *zerolog.Logger,
) *Handler

func (*Handler) GetCallback

func (h *Handler) GetCallback(c echo.Context) error

func (*Handler) GetCookie

func (h *Handler) GetCookie(c echo.Context) error

GetCookie returns csrf cookie & csrf header in the same response.

func (*Handler) GetMe

func (h *Handler) GetMe(c echo.Context) error

func (*Handler) GetRedirect

func (h *Handler) GetRedirect(c echo.Context) error

func (*Handler) ListAvailableProviders

func (h *Handler) ListAvailableProviders(c echo.Context) error

func (*Handler) PostLogin

func (h *Handler) PostLogin(c echo.Context) error

func (*Handler) PostLogout

func (h *Handler) PostLogout(c echo.Context) error

Jump to

Keyboard shortcuts

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