Redirect URI mismatch error with LinkedIn OAuth in Django Allauth on localhost

29 Views Asked by At

I am developing a LinkedIn sign-in feature for my Django application using Django Allauth. Everything seems to be configured correctly, and authentication works fine up until the point where LinkedIn attempts to redirect back to my application. I'm working on localhost and I'm receiving an error stating "The redirect_uri does not match the registered value" after attempting to authenticate with LinkedIn. I'm using http://127.0.0.1:8000/accounts/linkedin/login/callback/ as my redirect URI during tests in my local environment.

Question: Could anyone provide some guidance or help on this matter? Does LinkedIn allow redirect URIs to localhost for development testing, or is there something else I'm missing here?

0

There are 0 best solutions below