Documentation ¶
Index ¶
- Variables
- func ListProviders(w http.ResponseWriter, r *http.Request)
- func Loopback(w http.ResponseWriter, r *http.Request)
- func OAuth(oauthErrorFn ErrorHandlerFunc) func(w http.ResponseWriter, r *http.Request)
- func OAuthCallback(oauthCallbackFn CallbackHandlerFunc) func(w http.ResponseWriter, r *http.Request)
- func ProviderCtx(oauthErrorFn ErrorHandlerFunc) func(next http.Handler) http.Handler
- func Routes(oauthErrorFn ErrorHandlerFunc, oauthCallbackFn CallbackHandlerFunc) http.Handler
- type CallbackHandlerFunc
- type ErrorHandlerFunc
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)
Click to show internal directories.
Click to hide internal directories.