Skip to content

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

@richjava

Description

@richjava

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:

  • Forked this repo and created a Netlify app by Git, using the forked repo.
  • Renamed the Netlify app to "netlify-oath-example" (with mis-spelled "oauth" haha).
  • Created an Netlify OAuth application with a redirect URL of: https://netlify-oath-example.netlify.app/.netlify/functions/auth-callback.js
  • Set the Netlify environment variables NETLIFY_OAUTH_CLIENT_ID and NETLIFY_OAUTH_CLIENT_CLIENT with the values from the Netlify OAuth application.

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions