We are using two multi-sites and want to use different SSO for both like every site has its own MetaAddress and Wtrealm. We are trying to assign the same in a startup.cs file. How can we identify the site URL(based on site URL we will assign respective meta address and wtrealm) in startup.cs.
Can you please help in this?
You cannot change those values dynamically the way you're describing it. What you can do instead, is to register multiple schemes (with different settings) and then select a scheme with a policy scheme based on the URL. See https://docs.developers.optimizely.com/content-cloud/v12.0.0-content-cloud/docs/mixed-mode-authentication.