Skip to content

Commit 9faac54

Browse files
committed
Support custom local entity ID (issuer)
1 parent 854c0c3 commit 9faac54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ services:
66
- 10080:8080
77
- 10443:8443
88
environment:
9-
- SIMPLESAMLPHP_SP_ENTITY_ID=http://localhost:8080/saml2/service-provider-metadata/spring-boot-saml-poc
9+
- SIMPLESAMLPHP_SP_ENTITY_ID=issuer.example.com
1010
- SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:8080/login/saml2/sso/spring-boot-saml-poc

src/main/java/io/github/danilopiazza/spring/boot/saml/config/Saml2LoginConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private RelyingPartyRegistration relyingPartiRegistration() {
4444
// local registration ID
4545
String registrationId = "spring-boot-saml-poc";
4646
// local entity ID - autogenerated based on URL
47-
String localEntityIdTemplate = "{baseUrl}/saml2/service-provider-metadata/{registrationId}";
47+
String localEntityIdTemplate = "issuer.example.com";
4848
// local SSO URL - autogenerated, endpoint to receive SAML Response objects
4949
String acsUrlTemplate = "{baseUrl}/login/saml2/sso/{registrationId}";
5050
// local signing (and local decryption key and remote encryption certificate)

0 commit comments

Comments
 (0)