Rails 6 API Tutorial - JWT Authentication Service p.20

preview_player
Показать описание
In this video series we will build a Rails API from scratch. Backend APIs are useful for serving data to frontend applications, mobile apps or other backend services.

This video covers:
00:00 - Introduction
00:21 - Service classes
00:45 - Creating a services directory
01:24 - Writing initial test case for an authentication token service
03:54 - defining a class method on the authentication token service
05:12 - Generating a JWT using the ruby-jwt gem
08:42 - Adding JWT decode logic to the spec, to verify the token
10:54 - Removing duplicate code and tidying up
13:41 - Recap of what's left to build for our API authentication

Рекомендации по теме
Комментарии
Автор

Congratulations on moving to a different apartment (I suppose it's not just change of room, because in previous episode all books were removed), so many lore details, love the series so much :D

bernard
Автор

Thanks man, this series helped me a lot ❤

ahmedmustafa
Автор

I love your videos, but do you make any video using devise-jwt auth?

KhrisnaGunanasurya
Автор

Excellent casts, good tempo...kudos.
(keyboard typing is very disturbing, as my ears contacting your desk...)

kleinesmaccify
Автор

dynamic constant assignment
HMAC_SECRET = 'my$ecretK3y'. How can I fix this?

prasangathapaliya
Автор

Hi Tom. Isn't it safer to use as the HMAC_SECRET instead of having our secret key visible inside the code?

nickharalampopoulos