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.
Click to show internal directories.
Click to hide internal directories.