Align asserting party property with Spring Boot

Closes gh-74
This commit is contained in:
Eleftheria Stein 2022-04-26 12:07:35 +02:00
parent 6892a95805
commit cbbf5bb4bb
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ public class RefreshableRelyingPartyRegistrationRepository
private void fetchMetadata(String registrationId, Saml2RelyingPartyProperties.Registration registration) { private void fetchMetadata(String registrationId, Saml2RelyingPartyProperties.Registration registration) {
RelyingPartyRegistration relyingPartyRegistration = RelyingPartyRegistrations RelyingPartyRegistration relyingPartyRegistration = RelyingPartyRegistrations
.fromMetadataLocation(registration.getAssertingParty().getMetadataUri()) .fromMetadataLocation(registration.getAssertingparty().getMetadataUri())
.signingX509Credentials((credentials) -> registration.getSigning().getCredentials().stream() .signingX509Credentials((credentials) -> registration.getSigning().getCredentials().stream()
.map(this::asSigningCredential).forEach(credentials::add)) .map(this::asSigningCredential).forEach(credentials::add))
.registrationId(registrationId).build(); .registrationId(registrationId).build();

View File

@ -7,7 +7,7 @@ spring:
signing.credentials: signing.credentials:
- private-key-location: classpath:credentials/rp-private.key - private-key-location: classpath:credentials/rp-private.key
certificate-location: classpath:credentials/rp-certificate.crt certificate-location: classpath:credentials/rp-certificate.crt
asserting-party: assertingparty:
metadata-uri: https://dev-05937739.okta.com/app/exk46xofd8NZvFCpS5d7/sso/saml/metadata metadata-uri: https://dev-05937739.okta.com/app/exk46xofd8NZvFCpS5d7/sso/saml/metadata
logging.level: logging.level: