This site can’t be reached
<appSettings> <add key="ida:ADFSMetadata" value="https://***/adfs/ls/FederationMetadata/2007-06/FederationMetadata.xml" /> <add key="ida:Wtrealm" value="https://***/testapp/" /> </appSettings>
public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); } }
public partial class Startup { private static string realm = ConfigurationManager.AppSettings["ida:Wtrealm"]; private static string adfsMetadata = ConfigurationManager.AppSettings["ida:ADFSMetadata"]; public void ConfigureAuth(IAppBuilder app) { app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(new CookieAuthenticationOptions()); app.UseWsFederationAuthentication( new WsFederationAuthenticationOptions { Wtrealm = realm, MetadataAddress = adfsMetadata }); app.UseStageMarker(PipelineStage.Authenticate); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)