README.adoc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. = SAML 2.0 Login Sample
  2. This guide provides instructions on setting up this SAML 2.0 Login sample application.
  3. The sample application uses Spring Boot and the `spring-security-saml2-service-provider`
  4. module which is new in Spring Security 5.2.
  5. == Goals
  6. `saml2Login()` provides a very simple implementation of a Service Provider that can receive a SAML 2.0 Response via the HTTP-POST and HTTP-REDIRECT bindings against the SimpleSAMLphp SAML 2.0 reference implementation.
  7. The following features are implemented in the MVP:
  8. 1. Receive and validate a SAML 2.0 Response containing an assertion, and create a corresponding authentication in Spring Security
  9. 2. Send a SAML 2.0 AuthNRequest to an Identity Provider
  10. 3. Provide a framework for components used in SAML 2.0 authentication that can be swapped by configuration
  11. 4. Work against the SimpleSAMLphp reference implementation
  12. == Run the Sample
  13. === Start up the Sample Boot Application
  14. ```
  15. ./gradlew :spring-security-samples-boot-saml2login:bootRun
  16. ```
  17. === Open a Browser
  18. http://localhost:8080/
  19. You will be redirect to the SimpleSAMLphp IDP
  20. === Type in your credentials
  21. ```
  22. User: user
  23. Password: password
  24. ```