Creating a simple ACL entry

Recall that our very simple scenario is to only allow user2@example.com access to the birthday party event and ensure that no other events are accessible. You may find it helpful to refer back several pages to the database schema diagram to follow which data we are inserting and why.

We have already included a file named data.sql in the sample application. All of the SQL explained in this section will be from the file—you may feel free to experiment and add more test cases based on the sample SQL we've provided—in fact, we'd encourage that you experiment with sample data!

Let's take a look at the following steps for creating a simple ACL entry:

  1. First, we'll need to populate the ACL_CLASS table with any or all ...

Get Spring Security - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.