close
最近在寫登入安全的網頁,以下紅字一直有錯誤點線,原來是少安裝:Microsoft.AspNet.WebApi.Owin
public Task<HttpResponseMessage> ExecuteAsync(CancellationToken cancellationToken)
{
Request.GetOwinContext().Authentication.Challenge(LoginProvider);
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.Unauthorized);
response.RequestMessage = Request;
return Task.FromResult(response);
}
安裝完就好了
全站熱搜
留言列表