oauth

package
v0.0.0-...-4b998cf Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const RandomString = "FenaeTaini5thu5eimohpeer1ear5m"

RandomString random string for oauth2 API calls to protect against CSRF TODO: make it random

Variables

View Source
var (
	// Conf instantiating the OAuth2 package to exchange the Code for a Token
	Conf = &oauth2.Config{
		ClientID:     os.Getenv("HUGOKU_OAUTH2_CLIENT_ID"),
		ClientSecret: os.Getenv("HUGOKU_OAUTH2_CLIENT_SECRET"),
		RedirectURL:  os.Getenv("HUGOKU_OAUTH2_CALLBACK_URL"),
		Scopes:       []string{"user", "repo"},
		Endpoint:     githuboauth.Endpoint,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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