Rails API: Token Authentication Part 1 - [006]

preview_player
Показать описание
We show you how to setup token authentication in your rails app. We use devise to do the authentication and we install another gem to help us with enabling token authentication in our app!

#RUBYONRAILS #API #JWT

Rails API Series:

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

Best videos series will be which shows how backend development is done in the real companies :D. There are actually few paradigms like pair programming, design docs discussion, etc

ashishgaur
Автор

Great show, thanks! (Hint: try not to say 'basically' too often)

KiffinGish
Автор

Thank you! You are an awesome teacher and yours is the best tutorial I've found. I'll definitely subscribe to Codemy.

miveronese
Автор

Great video series, short and to-the-point lessons. Subscribed!

toddohanian
Автор

Do i get ask you direct doubts and get answers if i get membership?

videoeditorshiva
Автор

Great stuff. I'd recommend using a larger font in the future. Thanks again!

joshkuehn
Автор

Hey Zack, using your method here, it looks like you are adding an authentication_token column to the Users table. So for any subsequent request this requires looking up a record in the db for token validation, so you are maintaining state. Since a big motive for token authentication is to avoid persisting server-side data, do you know an alternative way to do this without having to access the db? Perhaps with JWT's/checking token signature using the rails secret_key_base? Thanks!

seanross
Автор

At 9:02 in the video:

if

The Safe Navigation Operator '&.' is really quite nifty, and the current stable release of Ruby is 2.4.1 as
of today----so has been around for a couple of years, but still would have been useful to point out this is a newer feature to the language only available since Ruby 2.3.0. Just mentioning the name of what it is, rather than saying "this is the same as this"
would be a more lucid approach.

jerroldthompson
Автор

great video but I am not able to find 007 and 008 video lecture in your playlist it starts from 009 . can u help me with that please

rjsnh
Автор

Where is remaining part of token authentication

pratipalsingh
Автор

please let me know how i can become a member of this channel

zeeshanmattu
Автор

I have a question. It is in every request that I need to send the token? Or just in the requests that will access to "authenticatable" resources?

MiguelDiganchi
Автор

Which theme are you using on VS Code??

nachocapuccio
Автор

hii, SimpleToken authentication support has been removed from Devise for security reasons. do you have another solution for that.

andriyabu
Автор

In the devise docuntation page says: "To set up a controller with user authentication, just add this before_action (assuming your devise model is 'User'):" and i add this: before_action :authenticate_user!, but not work, how can i set up a controller with user authentication?

hectorgool
Автор

I am trying to see some rails videos and it says "members only". How can I get membership?

usamasohail
Автор

why are you not using devise super class ? what's the point have it on gemfile ?

mariocardenas
Автор

Does this work alongside a rails app with an existing front end?

technoself
Автор

How I send these email and password in postman??

lucasluizm
Автор

I can´t find the video [007], where can I find it?

braulioramirez