authn

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedirectNoError added in v0.6.0

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

func GetRedirectWithError added in v0.6.0

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