Skip to content

Support configuration of localEntityIdTemplate for a SAML Relying Party #20352

@picpicpic

Description

@picpicpic

Add localEntityIdTemplate in saml2 autoconfiguration.

Current configuration

    saml2:
      relyingparty:
        registration:
          mysso:
            signing:
              credentials:
              - certificate-location: classpath:my-public.cer
                private-key-location: classpath:my-private.cer
            identityprovider:
              entity-id: entity-idp
              sso-url: https://mysso/public/saml2sso
              verification:
                credentials:
                - certificate-location: classpath:saml-signing-cert.pem

Expected configuration

    saml2:
      relyingparty:
        registration:
          mysso:
            signing:
              credentials:
              - certificate-location: classpath:my-public.cer
                private-key-location: classpath:my-private.cer
            identityprovider:
              entity-id: entity-idp
              sso-url: https://mysso/public/saml2sso
              verification:
                credentials:
                - certificate-location: classpath:saml-signing-cert.pem
            spprovider:
              local-entity-id: mylocalentityid

The 2 last lines allows to configure the local-entity-id.

Proposal

Add an internal class Spprovider in : org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyProperties
Use builder in : org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyRegistrationConfiguration

If needed, I can provide PR

Thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions