menu
Channels
Team

Love OneGraph 😓 but External Auth is unclear!

May 28, 2020 at 10:22pm

Love OneGraph 😓 but External Auth is unclear!

May 28, 2020 at 10:22pm
Hey guys! I'm trying to configure External Authentication from a Heroku Hasura App. I've already correctly set up the Remote Schema, difficulties arise while trying to query API's that require Authentication.
then goes on to ask if I accept consent of this application which forwards to...
Then entered this last URI and it returns {"error":"invalid_request","error_description":"app_id must be set as a query parameter"}
Even though it's been passed in exactly like it was in the previous URI string
app_id=6a13cg55-f703-43f4-9f04-e6cc4694831f <- This has been changed to hide actual but this was passed in to the query string exactly. Please help!!!!

May 28, 2020 at 10:32pm
Hey , can I just confirm that you're using the onegraph-auth package? It should handle all of this for you automatically, with an example here
  • reply
  • like
Hey thanks for getting back! I'm not yet making requests from a front-end yet. I've trying to make queries from a cloud-hosted Heroku Postgres back-end (Hasura) with a Remote Schema. My Remote Schema imported fine but having trouble authenticating from it.
Edited
  • reply
  • like
I see! It sounds like you might want to use a server-side auth token, but I'm not 100% clear on your use case. Would you have ~10 minutes to hop on a screenshare today and we can knock this out quickly?
  • reply
  • like