Documentation ¶
Index ¶
- Variables
- type Config
- type Provider
- func (provider Provider) Callback(context *auth.Context)
- func (provider *Provider) ConfigAuth(auth *auth.Auth)
- func (Provider) GetName() string
- func (provider Provider) Login(context *auth.Context)
- func (Provider) Logout(context *auth.Context)
- func (provider Provider) NewConsumer(context *auth.Context) *oauth.Consumer
- func (provider Provider) Register(context *auth.Context)
- func (Provider) ServeHTTP(*auth.Context)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var UserInfoURL = "https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClientID string ClientSecret string AuthorizeURL string TokenURL string RedirectURL string AuthorizeHandler func(context *auth.Context) (*claims.Claims, error) }
Config twitter Config
type Provider ¶
Provider provide login with twitter
func (*Provider) ConfigAuth ¶
ConfigAuth config auth
func (Provider) NewConsumer ¶
NewConsumer new twitter consumer
type UserInfo ¶
type UserInfo struct { ID string `json:"id_str"` Name string `json:"name"` Email string `json:"email"` Location string `json:"location"` Locale string `json:"lang"` Picture string `json:"profile_image_url"` Profile string `json:"url"` Verified bool `json:"verified"` }
UserInfo twitter user info structure
Click to show internal directories.
Click to hide internal directories.