authn

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedirectNoError

func GetRedirectNoError(ctx echo.Context, serverURL string) error

func GetRedirectWithError

func GetRedirectWithError(ctx echo.Context, l *zerolog.Logger, internalErr error, userErr string) error

Types

type AuthN

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

func NewAuthN

func NewAuthN(config *server.ServerConfig) *AuthN

func (*AuthN) Middleware

func (a *AuthN) Middleware(r *middleware.RouteInfo) echo.HandlerFunc

type SessionHelpers

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

func NewSessionHelpers

func NewSessionHelpers(config *server.ServerConfig) *SessionHelpers

func (*SessionHelpers) SaveAuthenticated

func (s *SessionHelpers) SaveAuthenticated(c echo.Context, user *db.UserModel) error

func (*SessionHelpers) SaveOAuthState

func (s *SessionHelpers) SaveOAuthState(
	c echo.Context,
	integration string,
) (string, error)

func (*SessionHelpers) SaveUnauthenticated

func (s *SessionHelpers) SaveUnauthenticated(c echo.Context) error

func (*SessionHelpers) ValidateOAuthState

func (s *SessionHelpers) ValidateOAuthState(
	c echo.Context,
	integration string,
) (isValidated bool, isOAuthTriggered bool, err error)

Jump to

Keyboard shortcuts

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