authn

package
v0.5.7 Latest Latest
Warning

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

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

Documentation

Overview

Package authn provides a high-level client for user authentication

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config Config
}

func NewClient

func NewClient(c Config) *Client

func (*Client) CheckCredentials

func (c *Client) CheckCredentials(username, password string) (bool, error)

type Config

type Config struct {
	NoAuth            bool
	Argon2idParams    argon2id.Params
	AdminUsername     string
	AdminPasswordHash string
}

func GetConfig

func GetConfig() (c Config, err error)

Jump to

Keyboard shortcuts

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