Get user_info inside of collection #385
Replies: 3 comments 5 replies
-
This is not possible right now, but not that hard to make. I don't see any harm to make |
Beta Was this translation helpful? Give feedback.
-
@stefanak-michal , I've created this pr: #386 |
Beta Was this translation helpful? Give feedback.
-
Let me tell you some history how I encountered this problem. I'm working on demo to showcase js driver directly connecting to ThingsDB. It's just ToDo app with user accounts. As you propably guessed already, user accounts are a little bit problem to deal with. I noticed this disccusion #364 which would be nice. But without it and without any other backend layer I have to use ThingsDB to manage that. (for a moment I was thinking about using auth0 and just do some curl from ThingsDB, but I didn't found out if it's possible, it would be nice to have this feature). Therefore I have one specific user account with CHANGE|GRANT|RUN on But this approach also required to add permission CHANGE|GRANT on Maybe I'm just thinking about it all wrong. 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi.
I would like to know if it's possible to load user_info inside of procedure which runs at specific collection? Because I would like to use
user_id
from user_info.I have this procedure in
@:stuff
:How can I identify (use) logged user in the whole ThingsDB logic I'll implement?
I don't want to return user_id to client and force client to send it with each request to ThingsDB.
Beta Was this translation helpful? Give feedback.
All reactions