httpbasic

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username, Password string
}

Config contains the config

type Provider

type Provider struct {
	Config *Config
}

Provider implements an alias generator

func New

func New(c *Config) *Provider

New initializes the auth provider and returns a new instance

func (*Provider) Authenticate

func (p *Provider) Authenticate(w http.ResponseWriter, r *http.Request) (bool, error)

Authenticate makes sure the right credentials are passed

Jump to

Keyboard shortcuts

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