auth

package module
v0.0.0-...-a8afb48 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCredentials    = errors.New("invalid credentials")
	ErrUserNotFound          = errors.New("user not found")
	ErrTwoFactorRequired     = errors.New("two-factor authentication required")
	ErrInvalidTwoFactorToken = errors.New("invalid two-factor token")
)

Authentication errors

View Source
var (
	ErrFeatureNotLicensed = errors.New("feature requires enterprise license")
	ErrInvalidLicense     = errors.New("invalid enterprise license")
	ErrLicenseExpired     = errors.New("enterprise license expired")
)

Enterprise feature errors

View Source
var (
	ErrInvalidB1Format  = errors.New("invalid b1gmail credential format")
	ErrB1SessionInvalid = errors.New("invalid b1gmail session")
	ErrB1MappingFailed  = errors.New("failed to map b1gmail user info")
)

B1Gmail compatibility errors

Functions

func NewDefaultProvider

func NewDefaultProvider(repo repository.Repository, tokenSecret []byte, featureService interfaces.FeatureService) interfaces.Provider

NewDefaultProvider creates a new instance of the default authentication provider

Types

This section is empty.

Directories

Path Synopsis
b1gmail module
enterprise module
gothermail module
interfaces module
models module
repository module

Jump to

Keyboard shortcuts

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