I am coming over from scaphold, and trying to get ...
# prisma-whats-new
c
I am coming over from scaphold, and trying to get an auth0 integration set up. I have seen messages about modules, templates, webtasks, and other things, but I need a simple and clear method to set up auth0 for instagram integration for my react native app. Auth0 seems to be an officially supported integration but there is no documentation and bits and pieces of the process scattered around. I also saw that there is a community template for it, but it looks very involved with a bunch of steps just to get it working.
👍 1
a
The process actually looks more involved than it really is. TL;DR; You need a Graphcool token to authenticate, so you'll need a method to exchange those. The community template does nothing more than that. It allows you to provide a Auth0 token, create/get a user for it in your Graphcool service, and returns a Graphcool token.
There's also a PR (by me) to do this on the Auth0 side using an Auth0 rule, and get the Graphcool token back as a claim, but it's not a battle-tested solution either. Auth0 is working on providing an easy method to retrieve third-party auth tokens, but as long as they're not finished with that, you need either of those two solutions
c
Ok, thanks. The problem is there is 0 documentation on how to put these pieces together. Do I use the auth0 integration located inside the dashboard to get the auth0 token? How do I do that? Do I ignore it and use something else? What queries or mutations do I use to interact with auth0 through graphcool? I guess I expected more information from a production service, especially if you are going to list auth0 as an official integration, but not tell us how to use it. I get that everyone loves all these new tools coming out with the playground and cli, and local dev environments, but how about get the things you have out now squared away first. With a backend service that we can't touch, integrations are very important, and the info for them is pretty non-existent.
a
The custom auth0 example is well documented. Also, the built-in Auth0 documentation has its restrictions, in that it only accepts HS256 tokens, but for the majority of cases, it still works out of the box. About the 'backend service we can't touch', I think that was the main reason why they came up with resolver functions, to basically allow you to do anything you need.
c
where is the well-documented auth0 example? And I don't mind that we can't dig into the backend, but if you make an integration for something, please build the entire integration. I have to spend days to figure out how to set up auth0 instead of reading a simple tutorial that could probably take someone an hour or two to create and eliminate all the questions and time-wasting. I appreciate the help, but it is super frustrating trying to really get into graphcool when they bombard you with information all over the place. I mean, I am supposed to be creating my project locally now? Is the dashboard obsolete? We need one simple source of truth, so hopefully documentation is THE top of the list instead of more and more complicated tooling.
I have seen the react apollo auth0 example, but I am using react native which is really completely different dynamic than react for web. I do appreciate the help. I'm just getting pissy because scaphold has gone to crap, and I want to use graphql instead of firebase, but the graphql services like Graph.cool are still too new.
👍 1