auth

package
v0.0.0-...-c433275 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthenticationError = errors.New("authentication error")

Functions

This section is empty.

Types

type Exchanger

type Exchanger interface {
	Start() (string, error)
	Exchange(code string, state string) error
	UserFetcher() UserFetcher
}

type ExchangerConfig

type ExchangerConfig struct {
	ClientId     string
	ClientSecret string
	RedirectURL  string
	Scopes       []string
	GenState     GenStateFn
}

type GenStateFn

type GenStateFn func() string

type Session

type Session interface {
	Add(key string, value interface{}) bool
	Remove(key string) bool
	Get(key string) interface{}
	Save() error
	Destroy() error
}

type UserFetcher

type UserFetcher interface {
	Fetch() (*models.Social, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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