TheFehr / n8n-nodes-pocketbase

MIT License
4 stars 4 forks source link

credentials #4

Closed NafunaAfrica closed 4 months ago

NafunaAfrica commented 4 months ago

I installed this from the community nodes section. its there but when i put the node in my flow it needs credentials and i dont know where to put them

TheFehr commented 4 months ago

You should be able to create a new credential entry, just like any other n8n node that needs credentials.

Official documentation about credentials: https://docs.n8n.io/credentials/

NafunaAfrica commented 4 months ago

image Here is what I see

TheFehr commented 4 months ago

That is weird, I'd need to check it on a fresh install myself tomorrow. What you could try is create the Credentials first outside of the workflow.

TheFehr commented 4 months ago

I can't seem to reproduce your error. I did update the node though, maybe that will solve it on your end.

NafunaAfrica commented 4 months ago

on my end i now get create credentials. I am using self hosted but get error. Wanted to know what "User collection name" is?is that the collection I am accessing? I also then see a Resource field after, what's meant to go so i connect?

TheFehr commented 4 months ago

I am happy to hear that it works.

Igloczek commented 4 months ago

I've just had the same problem as OP, but it wasn't just for this package. Every one that I installed was adding just nodes, but no credentials. Switched the docker image to an older one, in my case 1.48.3, and it started working 🤷

But I have a different question @TheFehr, why the credentials flow is only for users, not admins? For me, it's quite weird to even support regular users flows, since it requires having a fake admin user and granting him permissions, which will make mess on the Pocketbase side or will lead to security problems, when we leave everything open.

Workflow like this are usually meant to handle admin actions, not user scoped stuff, since we can't authenticate as users dynamically.

Update: I just forked this module and created my own that supports only admin actions, but also all the CRUD options and available parameters.

https://github.com/igloczek/n8n-nodes-pocketbase-admin