ATrubka:
私はと同等の特性ファイルにSAML2のセキュリティのため、次のYAML設定を変換しようとしています。
spring:
security:
saml2:
relyingparty:
registration:
xyz:
signing:
credentials:
- certificate-location: "classpath:saml/xyz.pem"
private-key-location: "classpath:saml/xyz.key"
identityprovider:
entity-id: xyz
sso-url: xyz.com
verification:
credentials:
- certificate-location: "classpath:saml/xyz.pem"
これは、リストが含まれており、それがプロパティに変換する方法は明白ではありません。私はそれについて多くをオンラインで見つけることができませんでした。
設定ファイルのこの部分は、以下のクラスを設定します。
org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyProperties
春・ブート自動構成-2.2.5.RELEASE.jarから。
pvpkiran:
このアウトを試してみてください。これは動作するはずです
spring.security.saml2.relyingparty.registration.xyz.signing.credentials[0].certificate-location=classpath:saml/xyz.pem
spring.security.saml2.relyingparty.registration.xyz.signing.credentials[0].private-key-location=classpath:saml/xyz.key
spring.security.saml2.relyingparty.registration.xyz.identityprovider.entity-id=xyz
spring.security.saml2.relyingparty.registration.xyz.identityprovider.sso-url=xyz.com
spring.security.saml2.relyingparty.registration.xyz.identityprovider.verification.credentials[0].certificate-location=classpath:saml/xyz.pem