Book Image

SPRING COOKBOOK

Book Image

SPRING COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Spring Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Managing Security

In this chapter, we will cover the following recipes:

  • Enabling Spring Security

  • Authenticating users using the default login page

  • Authenticating users using a custom login page

  • Authenticating users using a database

  • Adding a logout link

  • Using public folders

  • Authorizing only users with a specific role to view some pages

  • Displaying page elements only to authenticated users in views

  • Using HTTPS with Tomcat