Use asserting-party in Spring Boot SAML config
This commit is contained in:
parent
2b7ce67ff5
commit
cadaa9ac4f
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue