authn

package
v0.50.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 12 Imported by: 0

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(config *server.ServerConfig) *SessionHelpers

func (*SessionHelpers) GetKey added in v0.25.0

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

func (*SessionHelpers) RemoveKey added in v0.25.0

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

func (*SessionHelpers) SaveAuthenticated

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

func (*SessionHelpers) SaveKV added in v0.25.0

func (s *SessionHelpers) SaveKV(
	c echo.Context,
	k, v string,
) 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