Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Auth(provider string, request *http.Request, response http.ResponseWriter) error
 - func Init()
 - func ProviderCallback(provider string, request *http.Request, response http.ResponseWriter) (goth.User, error)
 - func RegisterProvider(providerName, providerType, clientID, clientSecret string)
 - func RemoveProvider(providerName string)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProviderCallback ¶
func ProviderCallback(provider string, request *http.Request, response http.ResponseWriter) (goth.User, error)
ProviderCallback handles OAuth callback, resolve to a goth user and send back to original url this will trigger a new authentication request, but because we save it in the session we can use that
func RegisterProvider ¶
func RegisterProvider(providerName, providerType, clientID, clientSecret string)
RegisterProvider register a OAuth2 provider in goth lib
func RemoveProvider ¶
func RemoveProvider(providerName string)
RemoveProvider removes the given OAuth2 provider from the goth lib
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.