on 03-05-2024 9:04 AM
Hello,
I have a CAP JAVA application where I defined a service with public entities and protected entities with requires annotation like this:
I can consume all my public entities without authentication.
But the $batch request gives a 401 error and requires authentication.
How can I make the $batch public as well with requires annotation?
I tried with spring security config:
This makes the $batch public but then I cannot get the authentication info of logged in users, so
What is the best way to solve this?
Best regards and many thanks,
Chris
User | Count |
---|---|
74 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.