Use asserting-party in Spring Boot SAML config

This commit is contained in:
Marcus Da Coregio 2022-04-20 11:06:40 -03:00
parent 2b7ce67ff5
commit cadaa9ac4f
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) {
RelyingPartyRegistration relyingPartyRegistration = RelyingPartyRegistrations
.fromMetadataLocation(registration.getIdentityprovider().getMetadataUri())
.fromMetadataLocation(registration.getAssertingParty().getMetadataUri())
.signingX509Credentials((credentials) -> registration.getSigning().getCredentials().stream()
.map(this::asSigningCredential).forEach(credentials::add))
.registrationId(registrationId).build();

View File

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