README.adoc 1.2 KB

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