oauth2

package
v0.0.0-...-d82a2c7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: MIT Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	AuthURL  string
	TokenURL string
}

type Provider

type Provider struct {
	Endpoint Endpoint
	UserFn   func(token *gauth.AccessToken) (*gauth.User, error)
	// contains filtered or unexported fields
}

func (*Provider) AuthURL

func (p *Provider) AuthURL(state string) (string, string, error)

func (*Provider) Authorize

func (p *Provider) Authorize(code string, params ...string) (*gauth.AccessToken, error)

func (*Provider) Init

func (p *Provider) Init(clientId string, secret string, callbackURL string, scopes ...string) error

func (*Provider) User

func (p *Provider) User(token *gauth.AccessToken) (*gauth.User, error)

Jump to

Keyboard shortcuts

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