Docker, nginx and OAuth redirect URL (self-hosted)

Please bear with me, I do see lots of questions similar to mine, but struggle to implement a solution…

Trying to set up oauth (for self-hosted docker instance) with LinkedIn, and I am stuck at this:

After configuring an app in linkedin, and requesting access to “Share on LinkedIn” and " Sign In with LinkedIn using OpenID Connect", I get the following error when I try to link my account from n8n (a small oauth window opens, says I have an error, redirecting me to my instance, and in More Details I see:

Error: Insufficient parameters for OAuth2 callback.
More details
Received following query parameters: {"error":"unauthorized_scope_error","error_description":"Scope "r_emailaddress" is not authorized for your application","state":"eyJ0b2tlbiI6IlJJM080aWNXLWJkcEl0SFJEYkZtSERncUNlNUN1cUpsOFZXRSIsImNpZCI6ImhwUm9WVWljdHR6M1VaeXAiLCJjcmVhdGVkQXQiOjE3MzUxMzcyODA3NTd9"}

(this is only with “Legacy” checkbox checked)

Alternatively, when on n8n connection page, if I check the “Organization Support”, I get:

Received following query parameters: {"error":"unauthorized_scope_error","error_description":"Scope "w_organization_social" is not authorized for your application","state":"eyJ0b2tlbiI6Ik1uTEloVkRsLWVOM1NfWHlsWGN1SE11WU5MWDJLQkxYN2kzRSIsImNpZCI6ImhwUm9WVWljdHR6M1VaeXAiLCJjcmVhdGVkQXQiOjE3MzUxMzc2OTQxMzF9"}

Any clues on how to connect my n8n to LinkedIn?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The solution was really simple - no idea why I was checking the checkboxes for “Legacy” or “Organization Support”. Read in some step-by-step manual about them so I checked the Legacy :person_shrugging: - actually when both are unchecked everything worked

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.