lightSAML / SpBundle

SAML2 SP Symfony Bundle based on LightSAML
https://www.lightsaml.com/SP-Bundle/
MIT License
66 stars 70 forks source link

EntityDescriptorProvider for IdP #14

Closed ntoniazzi closed 8 years ago

ntoniazzi commented 8 years ago

Hi, I'm trying to move some projects from AerialShip SamlSpBundle to lightSaml SpBundle and I'm facing some issues. For an application acting as an SP, I was using an entity descriptor provider for the IdP declaration. But the new symfony bridge configuration seems to only allow static xml files. Is there a way to configure a service implementing the EntityDescriptorProviderInterface somewhere?

tmilos commented 8 years ago

@ntoniazzi Sure, but now it's renamed to EntityDescriptorStoreInterface. You can define a service that implements that EntityDescriptorStoreInterface and tag it with lightsaml.idp_entity_store tag - so you can "dynamically" provide what ever IDP metadata you want. It will also automatically extract certificate credentials out of it, so there's no need to do any additional lightsaml.credential tagging. Hope this answers your question and I understood it well.

ntoniazzi commented 8 years ago

That's exactly what I was looking for.

Thanks.