pauth

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 2 Imported by: 0

README

pauth

Basic AuthN/AuthZ protobuf service

Documentation

Index

Constants

View Source
const (
	RoleAdministrator = service.RoleAdministrator
)

Variables

View Source
var (
	NewConnectInterceptor = service.NewConnectInterceptor
	BasicAuthMiddleware   = service.BasicAuthMiddleware
)
View Source
var (
	ErrLoginError            = service.ErrLoginError
	ErrEndpointDisabledError = service.ErrEndpointDisabledError
)
View Source
var (
	ErrSessionStoreRequiredError = service.ErrSessionStoreRequiredError
	ErrUnauthenticatedError      = service.ErrUnauthenticatedError
	ErrSessionLookupError        = service.ErrSessionLookupError
	ErrUnauthorizedError         = service.ErrUnauthorizedError
	ErrNoSessionError            = service.ErrNoSessionError
	ErrSessionCastError          = service.ErrSessionCastError
)
View Source
var (
	SetSessionInContext       = service.SetSessionInContext
	SesssionFromContext       = service.SesssionFromContext
	EnsureSessionHasOneOfRole = service.EnsureSessionHasOneOfRole
)
View Source
var (
	ErrUserAlreadyExistsError        = storage.ErrUserAlreadyExistsError
	ErrUnknownUserError              = storage.ErrUnknownUserError
	ErrIncorrectPasswordError        = storage.ErrIncorrectPasswordError
	ErrNoPasswordConfiguredError     = storage.ErrNoPasswordConfiguredError
	ErrSessionUnknownOrInactiveError = storage.ErrSessionUnknownOrInactiveError

	ErrInvalidConfigurationError = storage.ErrInvalidConfigurationError
	ErrNoHostError               = storage.ErrNoHostError
	ErrNoDBNameError             = storage.ErrNoDBNameError
	ErrNoUserError               = storage.ErrNoUserError
	ErrNoPasswordError           = storage.ErrNoPasswordError
)
View Source
var (
	NewPostgresStore = storage.NewPostgresStore
	NewMemoryStore   = storage.NewMemoryStore
)
View Source
var (
	NewService = service.NewService
)

Functions

This section is empty.

Types

type AuthBypassFunc added in v0.2.0

type AuthBypassFunc = service.AuthBypassFunc

type ConnectInterceptorConfig added in v0.2.0

type ConnectInterceptorConfig = service.ConnectInterceptorConfig

type MemoryStoreOpts

type MemoryStoreOpts = storage.MemoryStoreOpts

type PostgresStoreConnectionOpts

type PostgresStoreConnectionOpts = storage.PostgresStoreConnectionOpts

type PostgresStoreOpts

type PostgresStoreOpts = storage.PostgresStoreOpts

type ServiceConfig added in v0.2.0

type ServiceConfig = service.ServiceConfig

type SessionStore added in v0.2.0

type SessionStore = service.SessionStore

type Storer added in v0.2.0

type Storer = storage.Storer

Directories

Path Synopsis
gen
internal
cmd command

Jump to

Keyboard shortcuts

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