oauth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Config() *oauth2.Config

	//UserInfo returns the user ID and username given an auth token
	UserInfo(token string) (uint, string, error)
}

Provider represents an oauth provider. It provides a config and a method to obtain user information from an access token.

func NewProvider

func NewProvider(provider string, baseURL *url.URL, clientID, clientSecret string) (Provider, error)

NewProvider creates a new OAuth Provider

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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