Cross platform authentication using ASP.NET Web API

前端 未结 4 1351
故里飘歌
故里飘歌 2020-12-07 07:33

How do I even begin coding authentication using ASP.NET Web API so it is cross-platform to support desktop, mobile and web? I\'d read of some methods of doing RESTful authen

4条回答
  •  暖寄归人
    2020-12-07 07:52

    There are lots of ways to authenticate users for a REST service. Using tokens is possible but just using Basic Authentication is even simpler and about as standard and cross platform as you can go.

    Don't confuse authorization with authentication. The [Authorize] attribute is all about authorization but only after a user has been authenticated using some other mechanism. Authorization is completely useless without doing proper authentication first.

    The best resource to check is Dominick Baier who is an expert on the subject.

提交回复
热议问题