thedevdojo / auth

This is the repo for the DevDojo Auth package
https://devdojo.com/auth
MIT License
485 stars 34 forks source link

GitHub Login Error The redirect_uri is not associated with this application #120

Open dayas-kr-coder opened 2 weeks ago

dayas-kr-coder commented 2 weeks ago

Issue Description

When logging in via GitHub, the following error occurs:

The redirect_uri is not associated with this application

Steps to Reproduce

  1. Set up a Laravel app with GitHub OAuth.
  2. Attempt to log in using GitHub.
  3. Encounter the error.

Possible Cause

The redirect URI may be misconfigured.

Current Configuration

GitHub Developer Settings

Laravel .env File

Troubleshooting

  1. Verified GitHub's Authorization callback URL matches Laravel's redirect URI.
  2. Confirmed APP_URL in the .env file is correct.
  3. Checked redirect URI configuration in Laravel settings.

Additional Information

Request for Assistance

Could you help identify any potential misconfigurations or missing steps? Guidance on resolving the redirect URI mismatch would be appreciated.

skdishansachin commented 2 weeks ago

I think the issue might be with your Authorization callback URL. It needs to be http://devdojo.test/auth/github/callback instead.