netlify-labs / oauth-example

Example of how to use Netlify OAuth Applications
https://oauth-example.netlify.com/
38 stars 18 forks source link

Error during authorization: Redirect URI doesn’t match application #3

Open richjava opened 4 years ago

richjava commented 4 years ago

I have tried to follow this guide but when I click on the "Login with Netlify" button, I get the following error:

Error during authorization Redirect URI doesn’t match application

The steps I have taken:

Steps to reproduce: Navigate to the following URL and click the "Login with Netlify button: https://netlify-oath-example.netlify.app/

I'd really love to get this working and would appreciate any insights! :)

bettse commented 4 years ago

I had the same error immediately after deploying and renaming my site. I fixed it by doing a redeploy so that the frontend code knew my site's new name.

niwasmala commented 2 years ago

I also had the same error after renaming my site. I fixed by changing the redirect URL without .js.

After changing the redirect URL from {url-of-my-site}/.netlify/functions/auth-callback.js to {url-of-my-site}/.netlify/functions/auth-callback, run trigger to deploy the apps again, it works

theapplegates commented 2 years ago

I also had the same error after renaming my site. I fixed by changing the redirect URL without .js.

After changing the redirect URL from {url-of-my-site}/.netlify/functions/auth-callback.js to {url-of-my-site}/.netlify/functions/auth-callback, run trigger to deploy the apps again, it works

This worked for me. Thanks.