Click here to Skip to main content
14,272,257 members
Rate this:
Please Sign up or sign in to vote.
See more: , +
Hi,

I have a web api2 application. I would like to generate token for authentication... How can i create token for authentication??????????

Could you provide a sample for this............. Whether OWIN is needed for token based authentication....????????????????
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

In my last project I used the mechanisme which Taiseer Joudeh described very good on:

http://bitoftech.net/2014/06/09/angularjs-token-authentication-using-asp-net-web-api-2-owin-asp-net-identity/[^]

This works perfect!
   
Comments
Velkumar Kannan 23-Feb-15 4:55am
   
It is a complex one.. I need a sample for this
stibee 23-Feb-15 4:58am
   
Hey proper security is not easy. Please read first article, there is a refereced sample on github. I also started with this. In 2-3h you will have it running

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100