Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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!
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900