I use the stack netlify / bitbucket / hugo
and I am trying to set netlifyCMS without success.
I worked on the published version of netlify site :
in my browser I enter : https://mysite/admin
I am invited to log in to bitbucket
I tried login / password and Google account log in both .
then I got an “Invalid redirect_uri” after login to bitbucket .
I just checked the configuration , and everything is in line with the docs
I put a callback url as Netlify Authorization in bitbucket oauth consumer configuration
I configured static/admin/config.yml with :
auth_type: implicit
app_id: mykey
If you’re using implicit auth, you won’t need to set up access control with Netlify at all - implicit auth allows you to authenticate direct with Bitbucket from your browser. I see the issue on the Atlassian community and it seems like everyone started having this problem in July, curious if something changed on Bitbucket’s end, as it doesn’t look like the related code in the CMS changed in the last two years.
Is this only happening on localhost or in production as well?
Hey Marc, the callback URL should be the address of your site and not https://api.netlify.com/auth/done when using implicit auth.
I opened an issue to improve the docs for Bitbucket here.
Hi , I already followed up your suggestion
But I keep getting the same result with callback url linked to
mysite/admin
get a bitbucket login button , then when click , send directly to invalid redirect url page ,
I also to log out of bitbucket ,
then I am reasked to auth on bitbucket , … when done again that redirect invalid message !
thank for your support ,
finally I got a success auth, …
what I did ,
I removed app/secret from bitbucket and renew a new one ,
I added www prefix to redirect url
I honestly don’t know what was wrong … now it works .
Thanks evreybody to pay attention to my issue.