Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProviderConfig ¶
type ProviderConfig struct { Provider ProviderType *oauth2.Config InfoEndpoint string Unmarshal func(r io.Reader) (*User, error) }
func FacebookProviderConfig ¶
func FacebookProviderConfig(appId, appSecret, callback string) *ProviderConfig
func GoogleProivderConfig ¶
func GoogleProivderConfig(appId, appSecret, callback string) *ProviderConfig
type ProviderType ¶
type ProviderType string
const ( ProviderFacebook ProviderType = "facebook" ProviderGoogle ProviderType = "google" )
Click to show internal directories.
Click to hide internal directories.