VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.88k forks source link

Vulcan Auth0 integration #1897

Open SachaG opened 6 years ago

SachaG commented 6 years ago

I took some time to see how far along I could get in a Auth0 integration. I did some good progress, I got their Lock widget working and I can retrieve the access token.

Next step is figuring out how to relate Auth0's user id to our own local Meteor user _id. We might need to trigger a hook on Auth0's side?

SachaG commented 6 years ago

If you want to play with it:

  1. Get the 2-repo install with both repos on their auth0 branch.
  2. In settings.json's public object:
"auth0": {
      "clientId": "foo123",
      "domain": "foo.auth0.com"
    },
maxhash commented 6 years ago

Next step is figuring out how to relate Auth0's user id to our own local Meteor user _id. We might need to trigger a hook on Auth0's side?

Why not to use an email address, and 'Username-Password-Authentication' type of auth0 connection?

SachaG commented 6 years ago

I still need to look into it more, but it'd be great to support other auth methods like Twitter, Facebook, etc. via Auth0 so we probably can't rely on email alone.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jonathanstiansen commented 5 years ago

@SachaG anything come of this, or some help you could use to work on it?

SachaG commented 5 years ago

Our new plan is to use Accounts.js: https://github.com/accounts-js/accounts

Once that's in place we can revisit this issue and see how to make it work with Auth0, if there's a demand for it.

SachaG commented 5 years ago

(I would definitely welcome help to work on the Accounts.js integration btw!)

jonathanstiansen commented 5 years ago

@SachaG want to point me to the issue and maybe I can jump in to work on tasks or be part of the conversation?