handler

package
v0.0.0-...-315b2c7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AUTHN_COLLECTION_CREDENTIALS = "credentials"

Variables

This section is empty.

Functions

This section is empty.

Types

type Authn

type Authn struct {
	*Config
	// contains filtered or unexported fields
}

func New

func New(conf *Config) (*Authn, error)

func (*Authn) Create

func (a *Authn) Create(ctx context.Context, in *authn.Credential, out *authn.CredentialResponse) error

func (*Authn) InvalidCredential

func (a *Authn) InvalidCredential() error

func (*Authn) InvalidCredentialType

func (a *Authn) InvalidCredentialType(credentialType authn.CredentialType) error

func (*Authn) Update

func (*Authn) Validate

func (a *Authn) Validate(ctx context.Context, in *authn.Credential, out *authn.CredentialResponse) error

type Config

type Config struct {
	MongoUrl string `json:"mongourl"`
	Name     string
}

func NewConfig

func NewConfig(name string, source ...source.Source) (*Config, error)

func (*Config) ID

func (c *Config) ID() string

Jump to

Keyboard shortcuts

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