Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Only "simple webhook" is working #3

Closed
TAnas0 opened this issue Aug 28, 2018 · 3 comments
Closed

Only "simple webhook" is working #3

TAnas0 opened this issue Aug 28, 2018 · 3 comments

Comments

@TAnas0
Copy link

TAnas0 commented Aug 28, 2018

Hey,

I deployed this repository in Now trying to add authentication to my backend.
Only the endpoint /simple/webhook worked and I cannot use GET on the other two endpoints: /auth0 and /firebase.

My main interest is auth0 and I believe to have set the variable AUTH_ZERO_DOMAIN correctly.

Here is the link to the webhook: https://sample-auth-webhook-omfuteznfi.now.sh

Can you please help me pinpoint the source of the error?

I have also deployed the GraphQL engine and pointed it to the simple webhook endpoint by setting the environment variable:

"HASURA_GRAPHQL_AUTH_HOOK": "https://sample-auth-webhook-omfuteznfi.now.sh/simple/webhook"

I still can not access data and get the following response that states : "Error: Invalid response from authorization hook"
image

I really liked the GraphQL engine and am trying to explore it further and strongly considering it for production.
I would appreciate your help on this issue.

@TAnas0
Copy link
Author

TAnas0 commented Aug 28, 2018

Sure enough, I suffer all day from the problem and only realize how stupid it is once I get away from the keyboard for a minute.

The auth0 and firebase authentication endpoint are respectiveley /auth0/webhook and /firebase/webhook. And not /auth0 and /firebase.

Hope that at least it will help someone on the future

@TAnas0 TAnas0 closed this as completed Aug 28, 2018
@TAnas0
Copy link
Author

TAnas0 commented Aug 28, 2018

I still face a problem though concerning the second part of my issue, where I still get the same response in the screenshot.

@wawhal
Copy link
Contributor

wawhal commented Aug 28, 2018

Hey @TAnas0!

I see that you have deployed using now
I tried to replicate your issue, but it works fine for me.

Just to be sure, can you confirm that you ran the following command?

$ now -e AUTH_ZERO_DOMAIN='test.auth0.com'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants