Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions