Spring Boot web application secured with SAML2 authentication (Service Provider).
- Java 21
- Maven 3.8+
- Go to Unity console -> Identity Provider -> Endpoints
- Select SAML IdP of your choice
- Go to Clients tab and click "Add new Service Provider"
- Set "SP entity identifier": http://localhost:9080/saml2/service-provider-metadata/unity-idm
- Set "Authorized redirect URIs": http://localhost:9080/login/saml2/sso/unity-idm
- Provide Name and Displayed Name of your choice
- Click Create, and then Update the IdP configuration
mvn spring-boot:runApp starts on http://localhost:9080.
- SAML SP config lives in
src/main/resources/application.yml(IdP metadata URL, ACS, SLO, certs). - SP signing/decryption keys are in
src/main/resources/saml/.