/Spring-Security-Third-Edition

Spring Security Third Edition, published by Packt

Primary LanguageJavaMIT LicenseMIT

Spring Security 3rd Edition README

This README would normally document whatever steps are necessary to get your application up and running.

JBCP Calendar Application

This code has been developed in Gradle and has a sub-project for each chapter milestone. Thymeleaf has been used as the view templating engine throughout the book

Chapters


  1. Anatomy of an Unsafe Application
  2. Getting Started with Spring Security
  3. Custom Authentication
  4. JDBC-Based Authentication
  5. Authentication with Spring-Data
  6. LDAP Directory Services
  7. Remember-Me Services
  8. Client Certificate Authentication with TLS
  9. Opening up to OAuth2
  10. Single Sign-on with Central Authentication Service
  11. Fine-grained Access Control
  12. Access Control Lists
  13. Custom Authorization
  14. Session Management
  15. Additional Spring Security Features
  16. Microservice security with OAuth2 and JSON Web Tokens
  17. Migration to Spring Security 4.2





Building and Running the code examples

Code Software Requirements

  • JDK 8
  • Gradle 4.x
  • IntelliJ 2017+
  • Eclipse Neon+
  • See 'gradle.properties' for list of dependency versions

Building Intellij Project Files:

./gradlew idea

Intellij Plugin

Building Eclipse Project Files:

./gradlew eclipse

Eclipse Plugin

Clearing Gradle Wrapper cache:

(from project root) ./gradlew --build-cache clean

Clearing Gradle install cache:

rm -rf $HOME/.gradle/caches/ rm -rf $HOME/.gradle/daemon/

Running Individual projects:

  • Chapter 01: (from chapter root) ./gradlew tomcatRun
  • Chapter 02: (from chapter root) ./gradlew tomcatRun
  • Chapter 03: (from chapter root) ./gradlew tomcatRun
  • Chapter 04: (from chapter root) ./gradlew tomcatRun
  • Chapter 05: (from chapter root) ./gradlew bootRun

Running SonarCube for any individual project:

(from PROJECT root) ./gradlew sonarqube
-Dsonar.host.url=http://localhost:9000
-Dsonar.login=cbb0017712d39d6e9799a626cc0d980b0dd620e1

./gradlew sonarqube -Dscan

-- Note: Sonar server must be running !!!

Misc Items

gradle chapter16:dependencyInsight --dependency commons-lang3 --configuration compile

TODO's

the end...