IdentityServer (OpenId Connect) authentication on asp.net webform
<p>i'm trying to use IdentityServer3 to authenticate users on an asp.net webform application with owin pipeline (no mvc)</p>

<p>All the examples suggest to configure the application like a mvc application, but in this way the application doesn't perform a redirection to the IdentityServer Login page when i try to access to a protected resource of the webform application</p>

<p>this is my client (webform) configuration</p>

<p>[Startup.cs]</p>

<pre><code>app.UseCookieAuthentication(new CookieAuthenticationOptions { 
                AuthenticationMode = AuthenticationMode.Active,
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie
                //LoginPath = new PathString ("/Account/Login")   //&lt;--enabling this path property redirect me to a local login page but not to the external IdentityServer login page
            });



app.UseOpenIdConnectAuthentication(
                new OpenIdConnectAuthenticationOptions
                { 
                    Authority = "https://localhost:44300/identity",     //&lt;&lt;--url of the identityServer
                    ClientId = "webform",
                    ClientSecret = "ciccio",
                    Scope = "openid profile roles",
                    RedirectUri = "https://localhost:44302/",           //&lt;-- url of the client (to come back ofter the login) 
                    ResponseType = "id_token",
                    SignInAsAuthenticationType = "Cookies"
                });
</code></pre>

<p>i'm sure i forgot something</p>