github

package
v0.0.0-...-9082c2d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GITHUB_BASE = "https://api.github.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubAuthProvider

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

func NewAuthProvider

func NewAuthProvider(creds auth.OAuthCredentials, delegate GithubUserDelegate) *GithubAuthProvider

func (*GithubAuthProvider) AddScopes

func (g *GithubAuthProvider) AddScopes(scopes ...string)

func (*GithubAuthProvider) GetConfig

func (g *GithubAuthProvider) GetConfig() *oauth2.Config

func (*GithubAuthProvider) GetLabel

func (g *GithubAuthProvider) GetLabel() string

func (*GithubAuthProvider) GetName

func (g *GithubAuthProvider) GetName() string

func (*GithubAuthProvider) PrepareUser

func (g *GithubAuthProvider) PrepareUser(c *http.Client, t *oauth2.Token) (ab.Entity, string, error)

func (*GithubAuthProvider) ResolveUniqueID

func (g *GithubAuthProvider) ResolveUniqueID(db ab.DB, user ab.Entity) (string, error)

type GithubUserDelegate

type GithubUserDelegate interface {
	Convert(*gh.User) ab.Entity
	ResolveUniqueID(ab.DB, ab.Entity) (string, error)
}

Jump to

Keyboard shortcuts

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