Documentation ¶
Index ¶
- Constants
- type Config
- type Provider
- func (p *Provider) Callback(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest) (provider.UserIdentity, error)
- func (p *Provider) Login(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
- func (p *Provider) Logout(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
- func (p *Provider) Register(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
- func (p *Provider) Type() string
- type UserInfo
Constants ¶
View Source
const (
ProviderType = "facebook"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Callback ¶
func (p *Provider) Callback(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest) (provider.UserIdentity, error)
func (*Provider) Login ¶
func (p *Provider) Login(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
func (*Provider) Logout ¶
func (p *Provider) Logout(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
func (*Provider) Register ¶
func (p *Provider) Register(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
type UserInfo ¶
type UserInfo struct { ID string `json:"id"` Name string `json:"name"` GivenName string `json:"first_name"` FamilyName string `json:"last_name"` Picture string `json:"picture"` Profile string `json:"link"` Email string `json:"email"` Gender string `json:"gender"` Locale string `json:"locale"` Verified bool `json:"verified"` }
Click to show internal directories.
Click to hide internal directories.