github

package
v0.0.0-...-f284455 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderType = "github"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientID     string `json:"client-id"`
	ClientSecret string `json:"client-secret"`
}

func (*Config) New

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) Callback

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)

func (*Provider) Type

func (p *Provider) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL