Replies: 2 comments
-
Hold this one, I found the method. There is a small typo in the guide, at it refers to _s_check_perms. The class is without the s at the back. I will research it and write an example for everyone else if I succeed. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi, Allowing Wrt implementing security controls in safrs, several options are possible, depending on the use case, for example:
I use various approaches in my projects, but it's difficult to explain concisely, or implement generically in safrs. |
Beta Was this translation helpful? Give feedback.
-
Hi Thomas, all,
I'm new in RESTful API development, but your project is really helping me learn and understand how it works.
For the last week I have been working on securing access to the API on instance level. I.e. a user logged in, to be able to access only data related to his User Instance. Worked fine with overriding the _s_post and _s_patch as written in the docs - they now require a proper session token to work. However, I am struggling to secure the GET method, as it can't be overridden.
In the docs, you mention overriding _s_check_perms as a way to implement more granular access controls. I'm failing to find any details or any such method in the project code.
Can you give me a hint on how _s_check_perms overriding looks like?
Thanks,
Karstin
Beta Was this translation helpful? Give feedback.
All reactions