2
Answers

Web API token auth with jquery client

HI,
 
I am looking for  Web API token auth with jquery client. i am looking for a article which guide me how to develop a web api with token authentication.
 
from my asp.net mvc project i will use jquery at client side to access web api action. if action is protected then i have to capture unauthorize code return from web api by jquery and  i will send user credentials by jquery to web api then to get token.
 
before jumping onto the job i need a article which guide me how my web api can return token if credentials is ok.
 
also i need to see how to request and send token to web api by jquery.
 
i read these urls
https://forums.asp.net/t/2104737.aspx?Getting+Owin+Authorization+token+with+AJAX
http://www.dotnetcurry.com/aspnet/1223/secure-aspnet-web-api-using-tokens-owin-angularjs

 
 
so please share few relevant article links. thanks
Answers (2)
1
Ravi Patel

Ravi Patel

277 6.8k 1.4m 7y
Hi ,
 
refer this
 
http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/ 
Accepted
0
Tridip Bhattacharjee

Tridip Bhattacharjee

NA 1.2k 80.9k 7y
without identity can we generate token or jwt token ?
 
if any such article exist then please share the links. thanks