Is it possible to set up the realm URL, claim types, etc for azure ACS without editing the web.config? Can you set up these required elements programmatically somehow?
E
Handle FederationConfigurationCreated event of FederatedAuthentication class, e.g. in Application_Start of Global.asax:
void Application_Start(object sender, EventArgs e)
{
FederatedAuthentication.FederationConfigurationCreated += FCC;
}
private void FCC(object sender, FederationConfigurationCreatedEventArgs e)
{
e.FederationConfiguration.WsFederationConfiguration.PassiveRedirectEnabled = true;
e.FederationConfiguration.WsFederationConfiguration.Issuer = "https://mynamespace.accesscontrol.windows.net/v2/wsfederation";
e.FederationConfiguration.WsFederationConfiguration.Realm = "http://localhost:81/";
e.FederationConfiguration.WsFederationConfiguration.RequireHttps = false;
}