O'Reilly logo

Instant Spring Security Starter by Jakub Nabrdalik, Piotr Jagielski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Quick start – getting the basics right

There are two ways to learn anything: by reading first and working later or by reading and working bit by bit at the same time. We would like to mix these two by giving you the big picture first and then moving to a working example.

Understanding the big picture

So we've got this thing for authentication and authorization. Let's see who is responsible and what for.

There is an AccessDecisionManager, which, as the name suggests, is responsible for deciding whether we can access something or not; if not, an AccessDeniedException or InsufficientAuthenticationException is thrown.

AuthenticationManager is another crucial interface. It is responsible for confirming who we are.

Both are just interfaces, so we can swap ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required