Documentation ¶
Index ¶
- Constants
- type Config
- type Provider
- func (p *Provider) Callback(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest) (provider.UserIdentity, error)
- func (p *Provider) Login(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
- func (p *Provider) Logout(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
- func (p *Provider) Register(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
- func (p *Provider) Type() string
Constants ¶
View Source
const ProviderType = "github"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Callback ¶
func (p *Provider) Callback(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest) (provider.UserIdentity, error)
func (*Provider) Login ¶
func (p *Provider) Login(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
todo: use AccessTypeOffLine
func (*Provider) Logout ¶
func (p *Provider) Logout(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
func (*Provider) Register ¶
func (p *Provider) Register(w http.ResponseWriter, r *http.Request, authReq storage.AuthRequest)
Click to show internal directories.
Click to hide internal directories.