auth

package module
v0.0.0-...-5fcde19 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

Documentation

Index

Constants

View Source
const Namespace = "github.com/gosha20777/krakend-cookie-auth"

Namespace is the key to look for extra configuration details

Variables

This section is empty.

Functions

func ConfigGetter

func ConfigGetter(e config.ExtraConfig) interface{}

ConfigGetter extracts the credentials from the extra config details

Types

type Credentials

type Credentials struct {
	Url    string
	Cookie string
}

Credentials contains the pair user:pass

type Validator

type Validator interface {
	IsValid(subject string) (*authInfo, error)
}

Validator defines the interface for all the possible validation processes

func NewCredentialsValidator

func NewCredentialsValidator(credentials Credentials) Validator

NewCredentialsValidator creates a validator for a given credentials pair

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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