lightSAML / SpBundle

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

How generate metadata dynamically? #80

Open katerina-n opened 4 years ago

katerina-n commented 4 years ago

Hello.

Could you please help me to figure out the following:

I've connected a bundle to my project as a service provider (LightSAML SP Bundle) and for one particular idp everything is working fine. What I'm interested in is how to generate light_saml_symfony_bridge -> party -> idp -> files -> metadata dynamically depending on what company is logging in?

If I get it right - this metadata is generated by the client on idp side and redirects it to me (SP)

Thanks in advance.

tmilos commented 4 years ago

Hi Katerina, As obscurely documented on https://www.lightsaml.com/Symfony-Bridge/Configuration/ you can implement EntityDescriptorStoreInterface in a new service and tag it with lightsaml.idp_entity_store and that service will be asked if it has($entityId) for the incoming saml response and if answered true it will be asked to get($entityId) it. Hope that helps.

katerina-n commented 4 years ago

Thanks a lot for your answer. Could you please assist me one more time? How to establish a process of updating users data (e.g. name, phone number, job title)?