Skip to content

Annotated Support for Securing Return Values #14597

Closed
@rwinch

Description

@rwinch

It would be nice if we provided annotated support for securing returned values. For example:

@Service
class FooService {
  @AuthorizeReturnObject // @ApplyMethodSecurity (does not mention return value)
  public Foo foo() {
    return new Foo(); // we use new and we are using proxy based AOP but this is still secured!
  }
}

class Foo {
  @DenyAll
  String bar() {
    return "bar";
  }
}
@Autowired FooService fooService;
fooService.foo().bar(); // denied!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions