oauthcli

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(ctx context.Context, conf *oauth2.Config) (*oauth2.Token, error)

GetToken retrieves a github oauth2 token

func GetUsers

func GetUsers(client *http.Client) error

GetUsers uses an initialized oauth2 client to get information about a user

func Setup

func Setup() *oauth2.Config

Setup return an oauth2Config configured to talk to github, you need environment variables set for your id and secret

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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