Skip to content

Commit

Permalink
Merge pull request #220 from maryvilledev/logGithubIds
Browse files Browse the repository at this point in the history
log github credentials
  • Loading branch information
thebho authored Feb 17, 2017
2 parents 0e4e873 + 33ef7fd commit 45ff8fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/userscontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (c *UsersController) authenticateUser() error {
// Check that the supplied client_id matches the one we have

githubClientID, isSet := os.LookupEnv("GITHUB_CLIENT_ID")
c.Infof("Server Client ID: %s, isSet: %v, Credentials ID: %s", githubClientID, isSet, credentials.Id)
if !isSet {
return errors.MissingCredentialsError(fmt.Errorf(
"Missing client ID credential"))
Expand All @@ -70,6 +71,7 @@ func (c *UsersController) authenticateUser() error {

// Get the Github client secret
githubClientSecret, isSet := os.LookupEnv("GITHUB_CLIENT_SECRET")
c.Infof("Server Client Secret: %s, isSet: %v", githubClientSecret, isSet)
if !isSet {
return errors.MissingCredentialsError(fmt.Errorf(
"Missing client secret credential"))
Expand Down

0 comments on commit 45ff8fb

Please sign in to comment.