very easy tutorial for jwt authentication in asp.net core
i need very easy explain to jwt, i need short example that explain the main idea, i found a lot of writing things in it, i need to focus on the concept
6 Replies
Im confused, do you want to understand how JWTs work in theory, or how to implement them in ASP.NET?
in theory ,but with simple way
Okay, let me try
You are visiting a secure building. You enter the lobby which is not secure and identify yourself to the reception (log in with credentials).
They look in the big list of people who should have access and to what. They write this down on a card and finally sign the card saying "Steve from reception wrote this".
They give you this card (the token itself) and you can show this to anyone within the building and they can trust that the information in there was correct at the time the card was written, as it has been signed by Steve
so when you need to access Secure room A, you show your card, and it states you are allowed to visit room A, so you are allowed in
good, thanks, but i also have a problem with the code, i wish if i have simple code that represent it, i found i need to write code in the configuration and in json file and in the model, i wish if i have mini implement
what do you need specifically
you can consume tokens, create tokens, validate tokens
@eid nice thread thanks for posting this I'm also interested
Do you have some source articles about this?