results-example icon indicating copy to clipboard operation
results-example copied to clipboard

Redirect_uri

Open brianbier opened this issue 7 years ago • 12 comments

{ code: "FORBIDDEN", description: "Forbidden: redirect_uri is not allowed", }

I keep getting this error but I followed the instructions exactly. I am not sure why its happening. my application url .env is http://localhost:5000/

brianbier avatar Jan 12 '18 03:01 brianbier

@brianbier I am having the same message, have you been able to solve this issue ?

xsaamiir avatar Mar 04 '18 17:03 xsaamiir

@sharkyze No unfortunately.

brianbier avatar Mar 05 '18 01:03 brianbier

Can Typeform give some additional clues to resolving this issue? :(

isabellachen avatar May 28 '18 14:05 isabellachen

Oh right, when you create your application, you need to pass http://localhost:5000/callback as the callback uri. The suggestion is to pass http://localhost:5000/authorize, but in the express app the endpoint is callback.

isabellachen avatar May 28 '18 16:05 isabellachen

I am facing this issue. I am using ngrok as redirect url.

My url look like this, https://api.typeform.com/oauth/authorize?client_id={CLIENT_ID}&redirect_uri=https://e324asd.ngrok.io/oauth/typeform&scope=accounts:read

screenshot from 2018-09-25 16-54-39 Any idea?

muhsin-k avatar Sep 25 '18 11:09 muhsin-k

@isabellachen Could you please help me on this?

muhsin-k avatar Sep 25 '18 11:09 muhsin-k

@muhzi4u
Go to admin section: https://admin.typeform.com/account#/section/apps Under applications, Authorization callback URL should be http://localhost:PORT/callback where PORT is the port your server is running on, in my prev comment, mine was on 5000. When you use ngrok, you ngrok that port so ngrok has access to your local server running on that port. When your app goes into production, you change from localhost to whatever your domain name is. At least this worked for me... https://imgur.com/gnKLh0u

isabellachen avatar Sep 25 '18 13:09 isabellachen

What about redirect_uri in my example, https://e324asd.ngrok.io/oauth/typeform or http://localhost:PORT/callback ?

muhsin-k avatar Sep 25 '18 14:09 muhsin-k

Yes. It is working now. Complete URL is https://api.typeform.com/oauth/authorize?response_type=code&redirect_uri=http://localhost:4040/callback&scope=accounts:read&client_id={CLIENT_ID} @isabellachen Thank you so much

muhsin-k avatar Sep 25 '18 14:09 muhsin-k

@isabellachen Is there any way to update the Authorization callback URL for an already created app?

muhsin-k avatar Sep 25 '18 15:09 muhsin-k

If there was, I didn't figure it out...

On Tue, 25 Sep 2018 at 17:27, Muhsin.K [email protected] wrote:

@isabellachen https://github.com/isabellachen Is there any way to update the Authorization callback URL for an already created app?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Typeform/results-example/issues/7#issuecomment-424387225, or mute the thread https://github.com/notifications/unsubscribe-auth/AI2cmXrcjfWJxETnQIMQMo2suma3qCFwks5uektegaJpZM4Rbxyk .

isabellachen avatar Sep 25 '18 16:09 isabellachen

This is what worked for me

  1. go to you app with this https://admin.typeform.com/account#/section/apps

and for the callback url is http://localhost:{port you are runnin}/callback

  1. In the app.jason use "value": "http://localhost:5000/callback",

Samuel-S-Ampofo avatar Jul 31 '19 10:07 Samuel-S-Ampofo