title: ASP .net framework client with identityserver4 authentication couldn't access to unauthorize sections after login
body: <p>I implemented an SSO with IdentityServer4 and 3 clients. two of clients, are <code>ASP.NET Core</code>
  and other is <code>ASP.net Framework</code>.</p>
  <p>Both .Net Core clients, work well. but the problem is in .Net Framework client. after Login, when user navigate to unauthorized path and section, browser Redirect it to <code>&quot;/signin-oidc&quot;</code> (but in .Net Core clients, it doesn't happen) (also user login successfully, because it doesn't redirect client to Login page anymore and in two other projects, user logged in).</p>
  <p>Whate is problem? These are my code:</p>
  <p><strong>Config in SSO project:</strong></p>
  <pre><code> public class Config
      {
          ...
  
          public static IEnumerable&lt;Client&gt; GetClients()
          {
              return new List&lt;Client&gt;()
              {
                  new Client()
                  {
                      ClientId = &quot;SSO_Client&quot;,
                      ClientSecrets = { new Secret(&quot;secret&quot;.Sha256()) },
                      AllowedGrantTypes = GrantTypes.Code,
                      RedirectUris = {
                          &quot;https://localhost:44387/signin-oidc&quot;,  //.Net Core Client
                          &quot;https://localhost:44382/signin-oidc&quot;,  //.Net Core Client
                          &quot;https://localhost:44385/signin-oidc&quot;   //.Net Framework 
                      },
                      PostLogoutRedirectUris = {
                          &quot;https://localhost:44387/signout-callback-oidc&quot;,  //.Net Core Client
                          &quot;https://localhost:44382/signout-callback-oidc&quot;,  //.Net Core Client
                          &quot;https://localhost:44385/signout-callback-oidc&quot;   //.Net Framework Client
                      },
                      AllowedScopes = new List&lt;string&gt;()
                      {
                          IdentityServerConstants.StandardScopes.OpenId,
                          IdentityServerConstants.StandardScopes.Profile,
                          IdentityServerConstants.StandardScopes.Email,
                          &quot;organ&quot;,
                          &quot;access-control&quot;
                      },
                      AlwaysIncludeUserClaimsInIdToken = true,
                  }
              };
          }
      }
  </code></pre>
  <p><strong>Startup In .Net framework project:</strong></p>
  <pre><code>public class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              app.UseCookieAuthentication(new CookieAuthenticationOptions
              {
                  AuthenticationType = &quot;Cookies&quot;,
                  ExpireTimeSpan = TimeSpan.FromMinutes(60)
              });
  
              app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
              {
                  Authority = &quot;https://localhost:44372&quot;,  //SSO Project
                  RequireHttpsMetadata = false,
  
                  ClientId = &quot;SSO_Client&quot;,
                  ClientSecret = &quot;secret&quot;,
                  ResponseType = &quot;code&quot;,
  
                  SaveTokens = true,
  
                  RedirectUri = &quot;https://localhost:44385/signin-oidc&quot;,
                  PostLogoutRedirectUri = &quot;https://localhost:44385/signout-callback-oidc&quot;, 
  
                  Scope = &quot;openid profile email organ&quot;,
                  SignInAsAuthenticationType = &quot;Cookies&quot;,
              });
          }
      }
  </code></pre>