authn

package
v0.120.24 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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(ss *cookie.UserSessionStore) *SessionHelpers

func (*SessionHelpers) GetKey

func (s *SessionHelpers) GetKey(
	c echo.Context,
	k string,
) (string, error)

func (*SessionHelpers) GetKeyUuid added in v0.78.0

func (s *SessionHelpers) GetKeyUuid(
	c echo.Context,
	k string,
) (*uuid.UUID, error)

func (*SessionHelpers) RemoveKey

func (s *SessionHelpers) RemoveKey(
	c echo.Context,
	k string,
) error

func (*SessionHelpers) RotateSession added in v0.116.8

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

RotateSession moves the request's stored cookie session to a new ID, keeping its values. It does nothing when the request has no stored session, e.g. bearer-token auth.

func (*SessionHelpers) SaveAuthenticated

func (s *SessionHelpers) SaveAuthenticated(c echo.Context, user *sqlcv1.User) error

func (*SessionHelpers) SaveKV

func (s *SessionHelpers) SaveKV(
	c echo.Context,
	k, v string,
) error

func (*SessionHelpers) SaveNewSession added in v0.79.13

func (s *SessionHelpers) SaveNewSession(c echo.Context, session *sessions.Session) 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