basic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package basic contains logic for setting up a basic authenticator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticator

func NewAuthenticator(storage storage.Credentials, encrypter security.Encrypter) security.Authenticator

NewAuthenticator constructs a Basic authentication Authenticator

Types

type Authenticator

type Authenticator struct {
	CredentialStorage storage.Credentials
	Encrypter         security.Encrypter
}

Authenticator for basic security

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(request *http.Request) (*web.User, security.AuthenticationDecision, error)

Authenticate authenticates by using the provided Basic credentials

Jump to

Keyboard shortcuts

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