Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Implicit grant OAuth results in "Invalid redirect_uri" error

darranmorris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2019

I am integrating Bitbucket with Netlify and Netlify CMS, which uses client side implicit grant to log in and make changes in the repo. 

I have set up an OAuth consumer on Bitbucket and have added the Netlify callback URL [ https://api.netlify.com/auth/done ]and the necessary write access to Account and Repositories.

I then added the resulting Bitbucket OAuth key and secret to Netlify settings. I also did the CMS setup.

Screenshot 2019-07-31 at 10.17.19.png

However, when I then try to log in to the CMS through Bitbucket, I get the error message: 

Invalid redirect_uri
This integration is misconfigured. Contact the vendor for assistance.

Screenshot 2019-07-31 at 09.56.05.png

I saw that on June 5, there was a problem which resulted in this error, but it seems to have been resolved

6 answers

0 votes
Shawn Erquhart
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2019

Hey all, Netlify CMS maintainer here - can anyone confirm whether this is only happening on localhost?

Chan Wan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2019

Hi, for me it happen to both localhost and also netlify.com deployed URL. 

Susan Sanderson
Contributor
September 1, 2020

Still happening in Sep 2020 on nellfy.com deployed url. 

0 votes
William
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2019

I'm having the same problem. It keeps redirecting to localhost. 

0 votes
olaf Siebert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2019

yes, me too

olaf Siebert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2019

Well only option it seems to switch to GitHub 

0 votes
adamrobinson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2019

Im also experiencing this "Invalid redirect_uri" issue when setting up OAuth.

0 votes
dgadwa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2019

I'm experiencing the same error. 

This is my first project using Netlify CMS and Gridsome so it could well be an error on my part. I've started to check my work and came across your post in the research phase.

0 votes
darranmorris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2019

Update: It appears that instead of the Netlify api callback that I entered in the consumer, the redirect_uri parameter in the URL is pointing to my site. 

When I edit the URL parameters manually in the browser to point to the correct callback, things start to work properly.

Any help much appreciated!

DaveBourne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2019

Hi Darran

 

Did you ever figure this out? We have exactly same issue, need to somehow set the Callback URL!

 

Thanks

Dave

Like Chan Wan likes this
marc_poggi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2019

Hi Darran , I am experiencing the same error , 

have you found a workaround in the configuration to make it work  ?

 

Thanks 

 

marc

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events