onememberoauth2

package
v0.0.0-...-80b24d7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2014 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

README

onememberoauth2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimsBuilderfunc

type ClaimsBuilderfunc func(string) (map[string]string, error)

type Client

type Client struct {
	ClientId     string
	ClientSecret string
	RedirectURL  string
	ScopeDivider string
	Scopes       []string

	AuthUrl       string
	TokenUrl      string
	ClaimsBuilder ClaimsBuilderfunc
	Transport     *oauth.Transport
}

func Google

func Google(c Client) *Client

func NewOAuth2Provider

func NewOAuth2Provider(c Client) *Client

type Consumer

type Consumer interface {
	Callback(w http.ResponseWriter, r *http.Request, as onemember.AccountService) (int, string)
	Request(w http.ResponseWriter, r *http.Request) (int, string)
}

func New

func New(clients map[string]*Client) Consumer

Jump to

Keyboard shortcuts

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