Auth0 based authentication

Hello,

We are working on adding Auth0 based authentication for n8n restricted on per tenant level. We would like to discuss the interface with you on how to expose it better. The current progress can be found here - https://github.com/faros-ai/n8n/pull/1

This requires adding a few new dependencies to the project, e.g auth0-spa-js, jwt-decode, vue-class-component and vue-property-decorator.

Hi @tovbinm, would the dependency works with IdentityServer3 or equivalent that hosted within an on prem environment?

Also does n8n has a service description or $metadata ?

I am not sure I know the answer. That would be a great question to ask Auth0 support folks.

I have found these related issues - Search results for 'IdentityServer' - Auth0 Community but none of them explains how to integrate between them.

@tovbinm Did you end up implementing this? The link to the pull request, in the first post, doesn’t work.

We got it to work and opened up a PR into n8n. See PR #866 on n8n GitHub repo (unfortunately it was never merged).

Ah yes sorry. We are sadly still not 100% sure how we want to proceed here but I did not want to commit to anything here yet. After all, do we then have to support everything long-term (including checking, merging, support, documentation, …) as soon as we merge and we can not just remove it again easily. All that is sadly nothing I want to do right now in that regard. Hope that makes sense.

I would suggest using an auth proxy, in front of n8n. This way n8n can stay lean and user can use whatever they like.

On n8n side Auth Proxy only support needs to be added. Its simple and maintenance free.

Here is a good example:

2 Likes

I wonder if something like http://www.passportjs.org/ would make sense for a project like this?