provider

package
v0.0.0-...-f284455 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityProvider

type IdentityProvider interface {
	Type() string

	Login(w http.ResponseWriter, r *http.Request, request storage.AuthRequest)
	Register(w http.ResponseWriter, r *http.Request, request storage.AuthRequest)
	Logout(w http.ResponseWriter, r *http.Request, request storage.AuthRequest)
	Callback(w http.ResponseWriter, r *http.Request, request storage.AuthRequest) (UserIdentity, error)
}

type OAuthProvider

type OAuthProvider interface {
	Login(w http.ResponseWriter, r *http.Request, request storage.AuthRequest)
	Callback(w http.ResponseWriter, r *http.Request, request storage.AuthRequest) error
}

type PasswordProvider

type PasswordProvider interface {
	Login(w http.ResponseWriter, r *http.Request, request storage.AuthRequest)
}

type Provider

type Provider interface{}

type UserIdentity

type UserIdentity struct {
	UserID string
	Email  string

	ProviderID string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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