Documentation ¶
Index ¶
- type Provider
- func (p *Provider) BeginAuth(state string) (goth.Session, error)
- func (p *Provider) Debug(_ bool)
- func (p *Provider) FetchUser(session goth.Session) (goth.User, 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
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { AuthURL string AccessToken string RefreshToken string ExpiresAt time.Time CodeVerifier string }
func (*Session) Authorize ¶
Authorize should validate the data from the provider and return an access token that can be stored for later access to the provider.
func (*Session) GetAuthURL ¶
GetAuthURL returns the URL for the authentication end-point for the provider.
Click to show internal directories.
Click to hide internal directories.