|
|
@ -93,7 +93,8 @@ class Saml2RelyingPartyAutoConfigurationTests {
|
|
|
|
assertThat(registration.getAssertingPartyDetails().getEntityId())
|
|
|
|
assertThat(registration.getAssertingPartyDetails().getEntityId())
|
|
|
|
.isEqualTo("https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/metadata.php");
|
|
|
|
.isEqualTo("https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/metadata.php");
|
|
|
|
assertThat(registration.getAssertionConsumerServiceLocation())
|
|
|
|
assertThat(registration.getAssertionConsumerServiceLocation())
|
|
|
|
.isEqualTo("{baseUrl}" + Saml2WebSsoAuthenticationFilter.DEFAULT_FILTER_PROCESSES_URI);
|
|
|
|
.isEqualTo("{baseUrl}/login/saml2/foo-entity-id");
|
|
|
|
|
|
|
|
assertThat(registration.getAssertionConsumerServiceBinding()).isEqualTo(Saml2MessageBinding.REDIRECT);
|
|
|
|
assertThat(registration.getAssertingPartyDetails().getSingleSignOnServiceBinding())
|
|
|
|
assertThat(registration.getAssertingPartyDetails().getSingleSignOnServiceBinding())
|
|
|
|
.isEqualTo(Saml2MessageBinding.POST);
|
|
|
|
.isEqualTo(Saml2MessageBinding.POST);
|
|
|
|
assertThat(registration.getAssertingPartyDetails().getWantAuthnRequestsSigned()).isEqualTo(false);
|
|
|
|
assertThat(registration.getAssertingPartyDetails().getWantAuthnRequestsSigned()).isEqualTo(false);
|
|
|
@ -186,7 +187,9 @@ class Saml2RelyingPartyAutoConfigurationTests {
|
|
|
|
PREFIX + ".foo.identityprovider.singlesignon.sign-request=false",
|
|
|
|
PREFIX + ".foo.identityprovider.singlesignon.sign-request=false",
|
|
|
|
PREFIX + ".foo.identityprovider.entity-id=https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/metadata.php",
|
|
|
|
PREFIX + ".foo.identityprovider.entity-id=https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/metadata.php",
|
|
|
|
PREFIX + ".foo.identityprovider.verification.credentials[0].certificate-location=classpath:saml/certificate-location",
|
|
|
|
PREFIX + ".foo.identityprovider.verification.credentials[0].certificate-location=classpath:saml/certificate-location",
|
|
|
|
PREFIX + ".foo.entity-id={baseUrl}/saml2/foo-entity-id" };
|
|
|
|
PREFIX + ".foo.entity-id={baseUrl}/saml2/foo-entity-id",
|
|
|
|
|
|
|
|
PREFIX + ".foo.acs.location={baseUrl}/login/saml2/foo-entity-id",
|
|
|
|
|
|
|
|
PREFIX + ".foo.acs.binding=redirect" };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private boolean hasFilter(AssertableWebApplicationContext context, Class<? extends Filter> filter) {
|
|
|
|
private boolean hasFilter(AssertableWebApplicationContext context, Class<? extends Filter> filter) {
|
|
|
|