SpBundle icon indicating copy to clipboard operation
SpBundle copied to clipboard

How generate metadata dynamically?

Open katerina-n opened this issue 6 years ago • 2 comments

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.

katerina-n avatar Sep 03 '19 14:09 katerina-n

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.

tmilos avatar Sep 04 '19 19:09 tmilos

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)?

katerina-n avatar Sep 06 '19 08:09 katerina-n