auth

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiUser added in v0.8.1

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

Plain authentication is a basic username and password

func NewMultiUser added in v0.8.1

func NewMultiUser(users []server.User) *MultiUser

Create a new multi-user

func (*MultiUser) Check added in v0.8.1

func (m *MultiUser) Check(c server.ClientAuth) bool

Check authenticates the client using a username and password against a list of multiple users.

type Plain

type Plain struct {
	Username string
	Password string
}

Plain authentication is a basic username and password

func (*Plain) Check

func (p *Plain) Check(c server.ClientAuth) bool

Check authenticates the client using a username and password

type Token

type Token struct {
	Token string
}

Token holds a string token used for authentication

func (*Token) Check

func (p *Token) Check(c server.ClientAuth) bool

Check authenticates a client from a token

Jump to

Keyboard shortcuts

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