|
|
|
@ -56,6 +56,11 @@ public class Saml2RelyingPartyProperties {
|
|
|
|
|
*/
|
|
|
|
|
private String entityId = "{baseUrl}/saml2/service-provider-metadata/{registrationId}";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Assertion Consumer Service.
|
|
|
|
|
*/
|
|
|
|
|
private final Acs acs = new Acs();
|
|
|
|
|
|
|
|
|
|
private final Signing signing = new Signing();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -71,6 +76,10 @@ public class Saml2RelyingPartyProperties {
|
|
|
|
|
this.entityId = entityId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Acs getAcs() {
|
|
|
|
|
return this.acs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Signing getSigning() {
|
|
|
|
|
return this.signing;
|
|
|
|
|
}
|
|
|
|
@ -79,6 +88,38 @@ public class Saml2RelyingPartyProperties {
|
|
|
|
|
return this.identityprovider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Acs {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Assertion Consumer Service location template. Can generate its location
|
|
|
|
|
* based on possible variables of "baseUrl", "registrationId", "baseScheme",
|
|
|
|
|
* "baseHost", and "basePort".
|
|
|
|
|
*/
|
|
|
|
|
private String location = "{baseUrl}/login/saml2/sso/{registrationId}";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Assertion Consumer Service binding.
|
|
|
|
|
*/
|
|
|
|
|
private Saml2MessageBinding binding = Saml2MessageBinding.POST;
|
|
|
|
|
|
|
|
|
|
public String getLocation() {
|
|
|
|
|
return this.location;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLocation(String location) {
|
|
|
|
|
this.location = location;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Saml2MessageBinding getBinding() {
|
|
|
|
|
return this.binding;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBinding(Saml2MessageBinding binding) {
|
|
|
|
|
this.binding = binding;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Signing {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|