Рет қаралды 16,041
This tutorial covers creating a Rails authentication solution that allows you to login to your regular Rails app AND your Rails API! This solution is scalable for multiple API's, and includes solutions to common problems such as logins from mobile devices and issuing client ID and client secrets.
In the future, this tutorial will hopefully be used to create more advanced React, Vue, and React Native API applications.
Nejdetkadir's Demo: github.com/nejdetkadir/devise...
Nejdetkadir On Twitter: / nejdetkadirr
RubyYagi Blog Post: rubyyagi.com/rails-api-authen...
Doorkeeper Gem: github.com/doorkeeper-gem/doo...
Bootstrap 5: getbootstrap.com/docs/5.0/get...
Rack-Cors: github.com/cyu/rack-cors
Source Code: github.com/Deanout/doorkeeper
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
Join this channel to get access to perks:
/ @deanin
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
Timestamps
0:00 Intro And Doorkeeper Multi-Access Demo
3:10 Creating The Core Rails Application
13:03 Adding Doorkeeper To The Rails Application
25:08 Create The API Application Controller
27:12 Creating The API Only Books Controller Facade/BFF
30:30 Creating The Doorkeeper API Users Registrations Controller
42:06 Creating The Android API, Admin Only Facade/BFF
45:57 User and Oauth Token Creation And Revokation.
55:14 Adding Rack-Cors Gem To Restrict Access By IP/Request
#Deanin #Software #Programming