Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.
This repository was archived by the owner on May 9, 2020. It is now read-only.

Can't get it running #67

@balupton

Description

@balupton
$ node ./app.js 
GitHub callback url is http://www.iloveopensource.io/auth/github/callback

/Users/balupton/Projects/bevry/iloveopensource/node_modules/passport-github/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:66
  if (!options.clientID) throw new Error('OAuth2Strategy requires a clientID o
                               ^
Error: OAuth2Strategy requires a clientID option
    at Strategy.OAuth2Strategy (/Users/balupton/Projects/bevry/iloveopensource/node_modules/passport-github/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:66:32)
    at new Strategy (/Users/balupton/Projects/bevry/iloveopensource/node_modules/passport-github/lib/passport-github/strategy.js:61:18)
    at Object.<anonymous> (/Users/balupton/Projects/bevry/iloveopensource/app/middleware/passport.js:25:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/balupton/Projects/bevry/iloveopensource/app.js:19:16)

My config/config.js file is:

//example config put it in same folder with name config.<environment>.js (config.development.js by default)
var config = module.exports = {};
//override any config option here
config.hostname = 'localhost';
config.github = {
    clientId: process.env.GITHUB_CLIENT_ID,
    clientSecret: process.env.GITHUB_CLIENT_SECRET,
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions