Spring Security

Bookstore Project

The access to the public functions of the bookstore application shall be restricted to different user roles according to the following table:

ServiceFunctionAuthentication
required
Access granted to role
CUSTOMEREMPLOYEE
Catalog Add book
Find book
Search books
Update book
yes
no
no
yes
no


no
yes


yes
Customer Register customer
Find customer
Search customers
Update customer
no/yes1)
yes
yes
yes
yes
yes2)
no
yes2)
no
yes
yes
yes
Order Place order
Find order
Search orders
Cancel order
yes
yes
yes
yes
yes2)
yes2)
yes2)
yes2)
no
yes
yes
yes
1) no with basic authentication, yes with OIDC authentication
2) access is restricted to the customer's own data