cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Broken Authorization in @sap/cds 8.6.0

sven-leonhardt
Explorer
0 Kudos
429

I have a cds service secured via "@requires"

 

 

service MyService @(path: '/service/api/v1') @(requires: [
  'AdminRole'
]) {

 

 

When trying to access an entity on this service in CAP 8.5.1 without a proper role assignment I will get the expected error:

{"error":{"code":"403","@Common.numericSeverity":4,"message":"Forbidden"}}

However, when accessing the same entity after updating to CAP 8.6.0 the request is executed and returns a response, completely bypassing the authorization check defined via @requires.

I tested so far only locally via "auth": { "kind": "basic"}, not sure if it also happens with the other authentication strategies

Accepted Solutions (0)

Answers (0)