Book Image

Spring Security Essentials

By : Nanda Nachimuthu
Book Image

Spring Security Essentials

By: Nanda Nachimuthu

Overview of this book

<p>Spring Security is a framework that focuses on providing both authentication and authorization to Java applications. Like all Spring projects, the real power of Spring Security is how easily it can be extended to meet custom requirements. The popularity of the Spring framework is increasing and the security package of Spring addresses vast mechanisms of Security in a rich way. Due to an increasing number of applications for various business needs, the integration of multiple applications is becoming inevitable. The standard security procedures available across multiple implementations in Spring will protect vulnerable applications that are open to larger public and private audiences.</p> <p>Spring Security Essentials focuses on the need to master the security layer, which is an area not often explored by a Spring developer.</p> <p>At the beginning, we’ll introduce various industry standard security mechanisms and the practical ways to integrate with them. We will also teach you about some up-to-date use cases such as building a security layer for RESTful web services and applications.</p> <p>The IDEs used and security servers involved are briefly explained, including the steps to install them. Many sample projects are also provided to help you practice your newly developed skills. Step-by-step instructions will help you master the security layer integration with the Server, then implement the experience gained from this book in your own real-time application.</p>
Table of Contents (17 chapters)
Spring Security Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Spring Security with SAML logout


So far, we have seen how we can run the sample SAML application. Now, we will look at how Spring Security supports SAML logout. First, we will see how SAML logout works and then we will see the class that is supported by Spring Security for SAML logout.

SAML supports single sign-on, so we can also say that it supports single logout as well.

LogoutRequest issued by SP to IDP

The IDP determines authenticated SPs for a given user session. If there are no SPs, other than the SP who sends logout request, the profile proceeds with issuing a LogoutResponse to SP who sends logout request. Otherwise, LogoutRequest issued by the IDP to the SP and the SP-issued LogoutResponse to the IDP are repeated for each SP. The IDP issues LogoutResponse to the SP who sends the logout request.

Let's see what is in these request and response messages:

  • LogoutRequest is extended from RequestAbstractType. There are some attributes that must be in the RequestAbstractType element.

  • LogoutResponse...