local

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(e string, p string) (bool, error)

CompareHashAndPassword ..

func NewProvider

func NewProvider() auth.Provider

NewProvider creates a new local authentication provider.

Types

type Provider

type Provider struct{}

Provider a local authentication provider. TODO: support configuration later

func (*Provider) Authenticate

func (p *Provider) Authenticate(loginUser, password string) (*auth.ExternalAccount, error)

Authenticate ..

Jump to

Keyboard shortcuts

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