handlers

package
v0.0.0-...-94dab28 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderIDCtxKey    = &contextKey{"ProviderID"}
	ProviderOAuthCtxKey = &contextKey{"ProviderOAuth"}
)

Functions

func ListProviders

func ListProviders(w http.ResponseWriter, r *http.Request)

func Loopback

func Loopback(w http.ResponseWriter, r *http.Request)

Loopback redirects the client to another path on our router

func OAuth

func OAuth(oauthErrorFn ErrorHandlerFunc) func(w http.ResponseWriter, r *http.Request)

func OAuthCallback

func OAuthCallback(oauthCallbackFn CallbackHandlerFunc) func(w http.ResponseWriter, r *http.Request)

func ProviderCtx

func ProviderCtx(oauthErrorFn ErrorHandlerFunc) func(next http.Handler) http.Handler

func Routes

func Routes(oauthErrorFn ErrorHandlerFunc, oauthCallbackFn CallbackHandlerFunc) http.Handler

Types

type CallbackHandlerFunc

type CallbackHandlerFunc func(w http.ResponseWriter, r *http.Request, creds []social.Credentials, user *social.User, err error)

type ErrorHandlerFunc

type ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)

Jump to

Keyboard shortcuts

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