Versions in this module Expand all Collapse all v0 v0.3.0 Apr 21, 2014 Changes in this version + var SocialBaseUrl = "/user/login" + var SocialMap = make(map[string]SocialConnector) + func NewOauthService() + type BasicUserInfo struct + Email string + Identity string + Name string + type SocialConnector interface + AuthCodeURL func(string) string + Exchange func(string) (*oauth.Token, error) + SetRedirectUrl func(string) + Type func() int + UserInfo func(*oauth.Token, *url.URL) (*BasicUserInfo, error) + type SocialGithub struct + Token *oauth.Token + func (s *SocialGithub) SetRedirectUrl(url string) + func (s *SocialGithub) Type() int + func (s *SocialGithub) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error) + type SocialGoogle struct + Token *oauth.Token + func (s *SocialGoogle) SetRedirectUrl(url string) + func (s *SocialGoogle) Type() int + func (s *SocialGoogle) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error) + type SocialTencent struct + Token *oauth.Token + func (s *SocialTencent) SetRedirectUrl(url string) + func (s *SocialTencent) Type() int + func (s *SocialTencent) UserInfo(token *oauth.Token, URL *url.URL) (*BasicUserInfo, error) + type SocialTwitter struct + Token *oauth.Token + func (s *SocialTwitter) SetRedirectUrl(url string) + func (s *SocialTwitter) Type() int + func (s *SocialTwitter) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error) + type SocialWeibo struct + Token *oauth.Token + func (s *SocialWeibo) SetRedirectUrl(url string) + func (s *SocialWeibo) Type() int + func (s *SocialWeibo) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error)