The goal of this workshop is to integrate Spring Data with Spring Security, such that we do not have to explicitly pass our active user as argument when retrieving user preferences.
A PreferencesRepository has been provided with annotated methods containing placeholder security expressions; Up to you to implement these and have them checked by Spring Security.
-
PreAuthorize, PostAuthorize and configure the application enabling the user to save and find preferences by id
-
Now make sure only the preferences are returned for the authorized user
-
Run the tests to verify your implementation