providers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package providers implements the mechanism to load authentication providers to the system either built in authentication or custom once. These are external plugins, which can extend the application authentication capabilities beyond built in once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyChain

type KeyChain struct {
	Username string   `json:"username"`
	Keys     []string `json:"keys"`
}

type Provider

type Provider struct {
	Name          string
	Configuration interface{}
}

Provider defines the structure for provider specific configuration.

func (*Provider) Authenticate

func (p *Provider) Authenticate(username string) (users []KeyChain, err error)

Authenticate defines the logic used to determine the authentication provider and translation of the data between main application and provider

Directories

Path Synopsis
Package github implements authentication provider implementation for authentication source GitHub.
Package github implements authentication provider implementation for authentication source GitHub.

Jump to

Keyboard shortcuts

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