AcademyWorkflowsDevelopment

User login with OpenID Connect in n8n

Developers and IT teams that protect internal n8n webhooks with company sign-in.

  • Recommendedour rating
  • 6,996views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

authenticate-a-user-in-a-workflow-with-openid-connect.json

Loading the file...

What it does

An n8n workflow that requires a user to sign in through an OpenID Connect provider before a webhook runs. If the user is not signed in, it starts a login with Authorization Code and PKCE. It then requests the user's details from the provider's userinfo endpoint. The example uses Keycloak.

Use cases

  1. 01Limiting an internal approval webhook to signed-in staff
  2. 02Reading a user's profile from the identity provider
  3. 03Adapting the login flow to another OpenID provider

Connects

HTTP Request · Code · HTML

Questions about
User login with OpenID Connect in n8n.

What is User login with OpenID Connect in n8n used for?

Developers and IT teams that protect internal n8n webhooks with company sign-in. An n8n workflow that requires a user to sign in through an OpenID Connect provider before a webhook runs. If the user is not signed in, it starts a login with Authorization Code and PKCE. It then requests the user's details from the provider's userinfo endpoint. The example uses Keycloak.

How do I import User login with OpenID Connect in n8n into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is User login with OpenID Connect in n8n safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.