authbackend

package
v0.0.0-...-31af939 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 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 Backend

type Backend interface {
	Type() string
	Connect(map[string]string) error
	AuthenticateRequest(r *http.Request) (bool, User, Team, error)
}

func LoadFromPlugin

func LoadFromPlugin(path string, symbol string) (Backend, error)

type Team

type Team interface {
	GetId() string
	GetName() string
}

type User

type User interface {
	GetId() string
	GetUsername() string
}

Jump to

Keyboard shortcuts

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