Token based WebAPI theory from scratch
Solution 1
Ok, thank you everybody! I want publish the answer for my question. In the end my researches showed me I didn't know what JWT is. It was the cause of my incomprehension. WebAPI implementing with ASP .NET Identity based on JWT (JSON Web Token). You can see an example of how it works here, or read about it fully here. So, have a nice read and thank you everybody one more time, who helped me to find the truth.
I hope after these articles you'll understand all my questions and anger I felt before :)
Solution 2
I'm currently implementing exactly what you are trying to learn, This is the most helpful articles I've found which helped me alot while creating the whole solution:
- Token Based Authentication using ASP.NET Web API 2, Owin, and Identity
- AngularJS Token Authentication using ASP.NET Web API 2, Owin, and Identity
- Enable OAuth Refresh Tokens in AngularJS App using ASP .NET Web API 2, and Owin
Solution 3
http://www.codeproject.com/Articles/876870/Implement-OAuth-JSON-Web-Tokens-Authentication-in
The above links might be useful
Comments
-
matterai almost 2 years
I am interested in how token based authentication and authorization works. I am looking for a good article or rather group of articles (or book in the end) using which I finally reach enlightenment of how it works. I mean that I have found a huge number of examples and blog-posts about ASP .NET Identity, about Web API based on OWIN etc. But I couldn't find any explanation how it can be developed "from scratch": from database tables to appliction logic without any frameworks (includes EF) which wraps and hides all interesting things.
Thank you for your patience if you have read my question to the end.
-
Jonesopolis over 8 yearsBitOfTech is a great resource for ASP.NET and token auth
-
matterai over 8 yearsI think you are implementing your system using EF and another Microsoft utils like asp .net Identity etc. But I wanted to avoid all this tools and look at token-based-system in painted models and text descriptions. But thank you for links, it is very useful.
-
Taiseer Joudeh over 7 years@Jonesopolis and Mohammed ElSayed thanks for referring to my posts, happy to here that resources are useful for your projects :)