Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SocialBaseUrl = "/login/" SocialMap = make(map[string]SocialConnector) )
Functions ¶
func NewOAuthService ¶
func NewOAuthService()
Types ¶
type BasicUserInfo ¶
type SocialConnector ¶
type SocialGithub ¶
func (*SocialGithub) Type ¶
func (s *SocialGithub) Type() int
func (*SocialGithub) UserInfo ¶
func (s *SocialGithub) UserInfo(token *oauth2.Token) (*BasicUserInfo, error)
type SocialGoogle ¶
func (*SocialGoogle) Type ¶
func (s *SocialGoogle) Type() int
func (*SocialGoogle) UserInfo ¶
func (s *SocialGoogle) UserInfo(token *oauth2.Token) (*BasicUserInfo, error)
Click to show internal directories.
Click to hide internal directories.