httpupstream

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "httpupstream"

ProviderName const

Variables

This section is empty.

Functions

func BackendFactory

func BackendFactory(config map[string]string) (login.Backend, error)

BackendFactory creates a httpupstream backend

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth is the httpupstream authenticater

func NewAuth

func NewAuth(upstream *url.URL, timeout time.Duration, skipverify bool) (*Auth, error)

NewAuth creates an httpupstream authenticater

func (*Auth) Authenticate

func (a *Auth) Authenticate(username, password string) (bool, error)

Authenticate the user

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend is a httpupstream based authentication backend.

func NewBackend

func NewBackend(upstream *url.URL, timeout time.Duration, skipverify bool) (*Backend, error)

NewBackend creates a new Backend and verifies the parameters.

func (*Backend) Authenticate

func (sb *Backend) Authenticate(username, password string) (bool, model.UserInfo, error)

Authenticate the user

Jump to

Keyboard shortcuts

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