1

I'm using everyauth, and am having trouble authenticating it with github. It seems like all of the steps I've followed thus far are correct, but it keeps telling me it cannot GET /auth/github when clicking the "connect with github" link.

Here's a gist with my code: https://gist.github.com/2641260

Any help would be greatly appreciated!

Connor
  • 4,138
  • 8
  • 34
  • 51

2 Answers2

1

I know its probably too late to answer, but I just had the same problem and figured out the solution.

Its really simple.

Place the EveryAuth code before the app.configure() code.

This way: Fork of your Gist

Arjun Bajaj
  • 1,932
  • 7
  • 24
  • 41
0

Not sure if this will help but have you tried adding the ".entryPath" chainable parameter?

everyauth.github
    .entryPath('/auth/github')
    .appId("APP_ID")
    .appSecret("APP_SECRET")
    .findOrCreateUser( function (sess, accessToken, accessTokenExtra, ghUser) {
  console.log('find user')
  // return usersByGhId[ghUser.id] || (usersByGhId[ghUser.id] = addUser('github', ghUser));
  })
 .redirectPath('/');
steve
  • 128
  • 1
  • 4
  • 10