AngularJS + ASP.NET Web API + ASP.NET MVC Authentication

前端 未结 3 1742
有刺的猬
有刺的猬 2020-12-22 18:37

I am new to AngularJS and trying to evaluate it for my new web application.

Requirement:

I will have one ASP.NET Web API which will be consumed from an And

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-22 19:12

    I think you are on the right path. I would store the tokens in an Angular Service to make it easier on yourself (http://blog.brunoscopelliti.com/deal-with-users-authentication-in-an-angularjs-web-app). I'm a little confused on what you mean by "AngularJS tries to make a call to ASP.NET MVC application to get HTML", you shouldn't need to secure the MVC app, it's just running your Angular right? The API is the piece you want to secure as well.

提交回复
热议问题