authentication - Use OWIN Ws-Federation package to authenticate against ADFS 3.0 -


I have a MVC intranet site that requires authentication to use advertising accounts. I set up ADFS 3.0 (Win Server 2012 R2) and go to setup the AdFS Rising Party Trust. Other posts present the Ws-Federation OWIN component and I want to use it. It tells you how to connect to a Azur ED but nothing about ADFS. I tried to set the configuration properties "Metadataadata" and "WaterHail" for the configured configurations in ADFS, but at runtime, I get an error:

  A default value for SignInAsAuthenticationType is the IAppBuilder Could not be found in multiplier if your certification middleware has been added in the wrong sequence, or if one is missing.   

Any idea or sample code is showing how to do it?

Yes .. I came to the same issue. Just do the following and it should work:

  app .set default signinAuthorization type (WsFederationAuthenticationDefaults.AuthenticationType); App.UseCookieAuthentication (new cookie authorization option {authentication type = WsFederationAuthenticationDefaults.AuthenticationType});    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -