How to secure association resources?

后端 未结 2 544
悲哀的现实
悲哀的现实 2021-01-18 17:33

The problem can be defined by the following example:

I have a class MainClass which is related with another class called AssociatedClass by

2条回答
  •  情歌与酒
    2021-01-18 17:44

    Apply an excerpt projection to the associated entity's repository and add there security checks as described in

    Spring Data Rest: Security based projection

    The associated resource will be returned but you can hide certain fields or all of them.

提交回复
热议问题