C
C#5mo ago
eid

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
Pobiega
Pobiega5mo ago
Im confused, do you want to understand how JWTs work in theory, or how to implement them in ASP.NET?
eid
eidOP5mo ago
in theory ,but with simple way
Pobiega
Pobiega5mo ago
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
eid
eidOP5mo ago
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
Anton
Anton5mo ago
what do you need specifically you can consume tokens, create tokens, validate tokens
Royce
Royce5mo ago
@eid nice thread thanks for posting this I'm also interested Do you have some source articles about this?
Want results from more Discord servers?
Add your server