Creating Golang WebServer With Echo - Part 8: JWT Authentication

preview_player
Показать описание
Tutorial series for building step by step a real life server in Golang using Echo package.

Creating JWT authentication full flow:
Creating the JWT token on login, returning it to the user,
adding middleware that checks the token for validation
and gives/denies access to the end point

Short review of JWT Tokens:

Deep (longer) Dive to JWT Tokens:

JWT package in used in this video:

Starting code for this video:

Full code:

Stay tuned for more ;)
Рекомендации по теме
Комментарии
Автор

Awesome vid! Really clear explanation of jwt implementation.

PadillaJosh
Автор

Thanks for the video. any advice on how much it changed in recent releases w.r.t library ?

kannankalidasan
Автор

First of all, Thank you for providing this resource.
I have one question about your lecture :)

18:32 -> In 'mainJwt' function, There is c.Get("user") the sentence.
Why this key name is 'user'? Does authorization token at the requested moment converted to in 'user'?

nppeyfj
Автор

Thank's, your explication is very clear and it I helped me much :)

mperezguendulain
Автор

Great content! Did he make video about refresh tokens? Or does anyone have suggestions where should I look to get started with them?

jimbo-dev
Автор

Hi, can u tell more about JWT config struct, special about tokenlookup and authscheme. And how to use func jwtFromCookie and check validation of token

haml
Автор

Hi, really good videos, have learned a lot!
I have a question when I make the request to localhost:8000/jwt/main with the header included I get:
message: "code=401, message=Invalid or expired jwt, signature is invalid"
Do you have any idea why this could be happening? Thanks!

pablogtzgileta
join shbcf.ru