Base solution for your next web application
Open Closed

Is Token based authentication supportet in WebApi #291


User avatar
0
ole created

Hi,

I need to use the generated WebApi from a mobile app and would like token based authentication. How should I implement this?

Regards Ole E Oren


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    There were some discussions on this topic: <a class="postlink-local" href="http://forum.aspnetboilerplate.com/search.php?keywords=token">search.php?keywords=token</a>

    Since I've no much experience on token based auth, I can not help much for now. But..

    ASP.NET ZERO uses ASP.NET Identity Framework, so it should be easy to implement token based auth. Also, this is one of the high priority things I will implement in a short time. I will share my experience and codes after implementing it. For now, if you really need it immediately, you can check the article <a class="postlink" href="http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/">http://bitoftech.net/2014/06/01/token-b ... -identity/</a> If not, you can wait until I do it.

    BTW, you can use cookie based auth also from mobile devices. We did it and working properly. Just call Accoun/Login method, save cookies and add the cookies to next requests.