Documentation
¶
Index ¶
- type Lark
- type Provider
- func (p *Provider) BeginAuth(state string) (goth.Session, error)
- func (p *Provider) Client() *http.Client
- func (p *Provider) Debug(b bool)
- func (p *Provider) FetchUser(session goth.Session) (goth.User, error)
- func (p *Provider) GetAppAccessToken() error
- func (p *Provider) Name() string
- func (p *Provider) RefreshToken(refreshToken string) (*oauth2.Token, error)
- func (p *Provider) RefreshTokenAvailable() bool
- func (p *Provider) SetName(name string)
- func (p *Provider) UnmarshalSession(data string) (goth.Session, error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lark ¶
type Lark interface {
GetAppAccessToken() error // get app access token
}
Lark is the implementation of `goth.Provider` for accessing Lark
type Provider ¶
type Provider struct {
ClientKey string
Secret string
CallbackURL string
HTTPClient *http.Client
// contains filtered or unexported fields
}
Provider is the implementation of `goth.Provider` for accessing Lark
func (*Provider) GetAppAccessToken ¶
GetAppAccessToken get lark app access token
func (*Provider) RefreshToken ¶
func (*Provider) RefreshTokenAvailable ¶
Click to show internal directories.
Click to hide internal directories.