Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomOAuth ¶
func NewCustomOAuth(config domain.OAuthConfig) domain.OAuther
func NewOAuther ¶
func NewOAuther(config domain.OAuthConfig) (domain.OAuther, error)
Types ¶
type AccessTokenResponse ¶
type CustomOAuth ¶
type CustomOAuth struct {
// contains filtered or unexported fields
}
func (*CustomOAuth) GetAuthorizeURL ¶
func (c *CustomOAuth) GetAuthorizeURL() (string, string)
GetAuthorizeURL implements domain.OAuther.
func (*CustomOAuth) GetUserInfo ¶
func (c *CustomOAuth) GetUserInfo(code string) (*domain.OAuthUserInfo, error)
GetUserInfo implements domain.OAuther.
type DingTalk ¶
type DingTalk struct { ClientID string ClientSecret string RedirectURI string // contains filtered or unexported fields }
func NewDingTalk ¶
func NewDingTalk(config domain.OAuthConfig) *DingTalk
func (*DingTalk) GetAuthorizeURL ¶
func (*DingTalk) GetUserInfo ¶
func (d *DingTalk) GetUserInfo(code string) (*domain.OAuthUserInfo, error)
GetUserInfo implements domain.OAuther.
Click to show internal directories.
Click to hide internal directories.