Skip to Content
Spring Security in Action
book

Spring Security in Action

by Laurentiu Spilca
October 2020
Beginner to intermediate
560 pages
14h 52m
English
Manning Publications
Content preview from Spring Security in Action

16 Global method security: Pre- and postauthorizations

This chapter covers

  • Global method security in Spring applications

  • Preauthorization of methods based on authorities, roles, and permissions

  • Postauthorization of methods based on authorities, roles, and permissions

Up to now, we discussed various ways of configuring authentication. We started with the most straightforward approach, HTTP Basic, in chapter 2, and then I showed you how to set form login in chapter 5. We covered OAuth 2 in chapters 12 through 15. But in terms of authorization, we only discussed configuration at the endpoint level. Suppose your app is not a web application--can’t you use Spring Security for authentication and authorization as well? Spring Security is a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Security in Action, Second Edition

Spring Security in Action, Second Edition

Laurentiu Spilca

Publisher Resources

ISBN: 9781617297731Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link