Web API token auth with jquery client

Apr 6 2018 9:04 AM
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)