local

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	UserMap *viper.Viper
}

Authenticator struct represents local Authenticator options

func (*Authenticator) Init

func (a *Authenticator) Init(config *viper.Viper) error

Init method is used to ingest config of Authenticator

func (Authenticator) Login

func (a Authenticator) Login(ctx context.Context, payload []byte) (resultCtx context.Context, valid bool, id string, err error)

Login method is used to check if a couple of user/password is valid in local config

Jump to

Keyboard shortcuts

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