Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SocialBaseUrl = "/user/login" SocialMap = make(map[string]SocialConnector) )
Functions ¶
func NewOauthService ¶
func NewOauthService()
Types ¶
type BasicUserInfo ¶
type SocialConnector ¶
type SocialGithub ¶
func (*SocialGithub) SetRedirectUrl ¶
func (s *SocialGithub) SetRedirectUrl(url string)
func (*SocialGithub) Type ¶
func (s *SocialGithub) Type() int
func (*SocialGithub) UserInfo ¶
func (s *SocialGithub) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error)
type SocialGoogle ¶
func (*SocialGoogle) SetRedirectUrl ¶
func (s *SocialGoogle) SetRedirectUrl(url string)
func (*SocialGoogle) Type ¶
func (s *SocialGoogle) Type() int
func (*SocialGoogle) UserInfo ¶
func (s *SocialGoogle) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error)
type SocialTencent ¶
type SocialTencent struct { Token *oauth.Token *oauth.Transport // contains filtered or unexported fields }
func (*SocialTencent) SetRedirectUrl ¶
func (s *SocialTencent) SetRedirectUrl(url string)
func (*SocialTencent) Type ¶
func (s *SocialTencent) Type() int
func (*SocialTencent) UserInfo ¶
func (s *SocialTencent) UserInfo(token *oauth.Token, URL *url.URL) (*BasicUserInfo, error)
type SocialTwitter ¶
func (*SocialTwitter) SetRedirectUrl ¶
func (s *SocialTwitter) SetRedirectUrl(url string)
func (*SocialTwitter) Type ¶
func (s *SocialTwitter) Type() int
func (*SocialTwitter) UserInfo ¶
func (s *SocialTwitter) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error)
type SocialWeibo ¶
func (*SocialWeibo) SetRedirectUrl ¶
func (s *SocialWeibo) SetRedirectUrl(url string)
func (*SocialWeibo) Type ¶
func (s *SocialWeibo) Type() int
func (*SocialWeibo) UserInfo ¶
func (s *SocialWeibo) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo, error)
Click to show internal directories.
Click to hide internal directories.