function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
R MojumdarR Mojumdar 

Is there any way to generate dynamic ACS URL when using Salesforce as IDP

We are implementing SalesForce Identity Management and SF as IDP. We need to access a service provider's app using the ACS (endpoint) URL which changes based on user's company setup. For example user A will log into https://xyz.com/demo_a.com, user B will use URL https://xyz.com/demo_b.com. For SSO set up on the SP side each company will have separate setup and seperate endpoint URL. We can set up the Start URL dynamically for the connected Apps using Apex/javascript but at the same time we also need to change the ACS URL dynamically to make the SSO to work. Also which object hold this ACS URL setup - can we access that using Apex?
Saravanan Baskar 7Saravanan Baskar 7
hi were you able to resolve this issue??
R MojumdarR Mojumdar
Hi, yes we were able to solve the issue by creating a VF page and custom SAML response. We stored the user's company name in a custom field on user record and passed that in the SAML response. Thanks.