Rename 'identityprovider' property to 'asserting-party'

Rename spring.security.saml2.relyingparty.registration.*.identity-provider.*
to spring.security.saml2.relyingparty.registration.*.asserting-party.*

The old property names are still supported, but will lead to a warning
in the logs.

Closes gh-30642
This commit is contained in:
Moritz Halbritter
2022-04-14 11:27:05 +02:00
parent 38c2a5c14b
commit 6c400daa48
8 changed files with 308 additions and 79 deletions

View File

@@ -8,10 +8,10 @@ spring:
credentials:
- private-key-location: "classpath:saml/privatekey.txt"
certificate-location: "classpath:saml/certificate.txt"
identityprovider:
asserting-party:
verification:
credentials:
- certificate-location: "classpath:saml/certificate.txt"
- certificate-location: "classpath:saml/certificate.txt"
entity-id: simplesaml
singlesignon:
url: https://simplesaml-for-spring-saml/SSOService.php
@@ -21,10 +21,10 @@ spring:
credentials:
- private-key-location: "classpath:saml/privatekey.txt"
certificate-location: "classpath:saml/certificate.txt"
identityprovider:
asserting-party:
verification:
credentials:
- certificate-location: "classpath:saml/certificate.txt"
- certificate-location: "classpath:saml/certificate.txt"
entity-id: okta-id-1234
singlesignon:
url:

View File

@@ -46,7 +46,7 @@ class SampleSaml2RelyingPartyApplicationTests {
}
@Test
void loginShouldHaveAllIdentityProvidersToChooseFrom() {
void loginShouldHaveAllAssertingPartiesToChooseFrom() {
ResponseEntity<String> entity = this.restTemplate.getForEntity("/login", String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(entity.getBody()).contains("/saml2/authenticate/simplesamlphp");