auth

package
v0.0.0-...-81fdf0f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	RemoveAdminPassword()
	SetAdminPassword(string) error
	IsAdminPasswordValid(string) bool
	GenerateJwtToken(time.Duration) (string, error)
	ValidateJwtToken(string) (bool, error)
	IsAdminPasswordConfigured() bool
	Disable()
	Disabled() bool
}

Auth is the Auth api

func New

func New() Auth

func NewMock

func NewMock(settings settings.API) Auth

Jump to

Keyboard shortcuts

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