Token based WebAPI theory from scratch

13,540

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:

Solution 3

http://blogs.msdn.com/b/ukadc/archive/2012/05/24/claim-based-security-for-asp-net-web-apis-using-dotnetopenauth.aspx

http://www.codeproject.com/Articles/876870/Implement-OAuth-JSON-Web-Tokens-Authentication-in

The above links might be useful

Share:
13,540
matterai
Author by

matterai

In SOA we trust.

Updated on June 22, 2022

Comments

  • matterai
    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
    Jonesopolis over 8 years
    BitOfTech is a great resource for ASP.NET and token auth
  • matterai
    matterai over 8 years
    I 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
    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 :)