WebAPI / Owin - Identity is not authorized after signing-in

前端 未结 1 814
傲寒
傲寒 2021-01-14 00:52

I\'m implementing simple login/password authentication using WebAPI/Owin 3.0. Here is my config method:

public void ConfigureAuth(IAppBuilder app) {
    // C         


        
1条回答
  •  萌比男神i
    2021-01-14 01:39

    It turned out that Cookie authentication conflicts with SuppressDefaultHostAuthentication option. Disable this in WebApiConfig.cs to solve the problem.

    config.SuppressDefaultHostAuthentication();
    

    0 讨论(0)
提交回复
热议问题