Granting rights through authorization

If authentication is the way to define who can access a particular resource, authorization is the way to define what a user can and cannot do once they have access to the domain.

It's like allowing someone to get into your house, but denying them access to the remote control for your TV (very important access, by the way). Or, allowing access to the remote control, but denying access to adult channels.

One way to do it is through profiles, and that's what we are going to do in this recipe.

Get Java EE 8 Cookbook 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.