Multiple reply URLS
I have a Single STS server to manage my authentication but I have several websites all of these use the same source files, and web config file.
Each website uses the variation in the URL (PDMNA, CPDEU, FIND) to establish what database it needs to connect to. So it is essential that the reply URL is correct.
This is where the issue starts, I can handle the AudienceUrls as shown below but the realm and reply I can only have one. Which means I always get sent back to PDMNA regardless of the original URL.
So the questions are as follows.
- Can I have multiple realm and reply URLS?
- Can I have a separate web.config file for each URL but maintain the single set of webfiles?
- Is there another options?
An application normally has a single realm; you can dynamically change the reply adders by subscribing to the appropriate event of the subobjects of the static FederatedAuthentication class. Finally, you can use web config transforms to specify a configuration per deployed application instance.