Linkedin OAUTH Core Function - "The redirect_uri does not match the registered value"

I have created a Linkedin developed app with “Sign In with LinkedIn using OpenID Connect” enabled.

Then I copied the client ID and primary client secret from the “Auth” tab and inputted them into “LinkedIn OIDC client ID” and “LinkedIn OIDC client secret” Discourse settings fields respectively.

Then, I added the following in the “Authorized redirect URLs for your app” setting on Linkedin under the “Auth” tab:

https://forums.jtechforums.org/auth/linkedin_oidc/callback

Then I enabled “Enable LinkedIn OIDC logins” in the Discourse settings.

Upon logging out and clicking the Linkedin OAUTH button, it shows the following from Linkedin:

### Bummer, something went wrong.

The redirect_uri does not match the registered value

Why is this happening and how can I fix this? I thought I followed all the steps properly outlined here: Configure LinkedIn login using OpenID Connect

2 Likes

Can someone confirm if this is a bug or a misconfiguration on my part? I double-checked and it looks like I followed the documentation :crying_cat: