argonauth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgonAuth

type ArgonAuth interface {
	RegisterSetupHandlers(group *echo.Group)
	RegisterDefaultPublicHandlers(group *echo.Group)
	RegisterDefaultPrivateHandlers(group *echo.Group)
	RegisterHandlers(group *echo.Group, router RouterMap)
	Account(input ...types.AccountService) types.AccountService
	SetupHandler(c echo.Context) error
	VerifyTokenInCookieMiddleware() func(echo.HandlerFunc) echo.HandlerFunc
	VerifyTokenInHeaderMiddleware() func(echo.HandlerFunc) echo.HandlerFunc
	VerifyRolesMiddleware() func(echo.HandlerFunc) echo.HandlerFunc
}

func New

func New(options ...Option) ArgonAuth

type GroupOptions

type GroupOptions struct {
	DefaultGroupName      string
	DefaultAdminGroupName string
}

type Logger

type Logger interface {
	logger.Logger
}

type Option

type Option func(*argonAuth) error

func DisableStatelessAuth

func DisableStatelessAuth() Option

func EnableDebug

func EnableDebug() Option

func EnableStatefulAuth

func EnableStatefulAuth() Option

func EnableUserRolesInResponse

func EnableUserRolesInResponse() Option

func SetDebug

func SetDebug(input bool) Option

func SetGroupOptions

func SetGroupOptions(input GroupOptions) Option

func SetSqlite

func SetSqlite(input string) Option

func SetTokenOptions

func SetTokenOptions(input TokenOptions) Option

func UseCache

func UseCache() Option

func WithLogger

func WithLogger(input Logger) Option

type Router

type Router struct {
	Handler    func(echo.Context) error
	HttpMethod string
}

type RouterMap

type RouterMap map[string]Router

type TokenOptions

type TokenOptions struct {
	Secret     string
	Audience   string
	Expiration time.Duration
	Issuer     string
}

Jump to

Keyboard shortcuts

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