I have one web applications that acts as an SP to a remote ADFS IDP. The SP uses a simplesamlphp install on a Linux server using Nginx. I will call it
app1.mycompany.comI want to add another web application to the same LInux server and vhost Nginx set up that connects to the exact same remotely installed/served ADFS IDP. It is
app2.mycompany.comI wanted to avoid installing another simplesamlphp build for the second SP. So I just added a second SP configuration in the config/authsources.php file that the first app is set up in. Again, both are SP's. However, when I click on log in, the log in gets correctly routed to the IDP, I enter my credentials, but the IDP reports an error giving a reference number. The first application's SSO to the IDP still works fine.
I do not control the IDP or have access to its server. So I am surmising that this is because both SP's report the same endpoints--same domains--the original one.
Do I need to do something like is described in here:
https://groups.google.com/forum/#!search/multple$20domains$20for$20single$20installation/simplesamlphp/uXNpvWd_XS8/AvAkT01swPgJIf so, which method/approach?
Right now application 1 (the original one) Is the one aliased to simplesaml. You can get the simplesaml admin page by going to
app1.mycompany.com/simplesaml/ But you cannot get the simpelsaml admin page from the second app at all, not even
app2.mycompany.com/simplesaml/ because I didnt' modify the vhost file on the sp server.
Should I? Is this necessary? Before I affect users by a web server restart I wanted to ask.
But both of the apps show up in the simplesaml admin page federation test login tab.
Also, each SP configuration in the authsources.php file has its own unique entityID. I saw in the forum post I pasted above someone used "NULL" or something and people were referencing using PHP's $_SERVER, which I don't get. The point to the saml IDP entityID configured in the metadata idp file.
The IDP shows metadata for both applications as having endpoints as
app1.mycompany.com . . . in the strings. For examples, both the existing SP and the new one I added show the following on the IDP:
https://app1.mycompany.com/simplesaml/module.php/saml/sp/saml2-acs.php/app1-adfs-idpwhereas I would think the new one would have to be
https://app2.mycompany.com/simplesaml/module.php/saml/sp/saml2-acs.php/app1-adfs-idpBy the way, if it is not clear, both of these apps are not only on the same linux server, same nginx, but they also have the same domain, just different subdomains.
What else am I missing in this set up? What else do I need to do? Or should I just install another simplesamlphp for the new application?
Also, I don't think I need to modify the sessions do I? Since they are the same domain but different subdomains. I had two different apps installed on one server using one web server but had different domains. I had to use MySQL for the sessions to avoid session collisions/drops.
Thanks.