Documentation
¶
Index ¶
- type CredChecker
- type Provider
- func (p *Provider) BeginAuth(state string) (goth.Session, error)
- func (p *Provider) Debug(debug bool)
- func (p *Provider) FetchUser(session goth.Session) (goth.User, error)
- func (p *Provider) IssueSession(email, password string) (goth.Session, 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 UserFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredChecker ¶
type Provider ¶
type Provider struct { AuthURL string UserFetcher CredChecker // contains filtered or unexported fields }
func New ¶
func New(authUrl string, userFetcher UserFetcher, credChecker CredChecker) *Provider
func (*Provider) IssueSession ¶
func (*Provider) RefreshToken ¶
func (*Provider) RefreshTokenAvailable ¶
Click to show internal directories.
Click to hide internal directories.