-
Couldn't load subscription status.
- Fork 6.2k
Description
I am trying to migrate from the old SAML extension project to the new. on Spring 5.8.x (not boot).
It would be good if i could use RelyingPartyRegistrations.collectionFromMetadataLocation() could skip "SP" entries instead of throwing exceptions.
Right now I am getting org.springframework.security.saml2.Saml2Exception: Metadata response is missing the necessary IDPSSODescriptor element
Ideally there should be a flag to skip entities without IDPSSODescriptor. In this federation, there are SPSSODescriptor:s mixed in the same metadata as the IdP:s in this case.
See https://fed.skolfederation.se/prod/md/skolfederation-3_1.xml (A Federation for school owners (IdP) ca 200+ and e-learning resources (SPs) in Sweden).
Since the classes are package private and final, it is hard to work around the issue at present.
The only possible workaround seems to be to copy classes..
Also, how does one parse and store the other metadata, that was read by the old implementation, such as "organisation.name" when RelyingPartyRegistration is final and there are no hooks in the code afaik. Couldn't it be an interface instead? Or expose the XMLObject?
I have a dropdown list to select the IdP by OrgName in my implementation today, that's using the old project.
I'm unable to find a migration guide, and the docs are pretty sparse.
Thanks.