In the video below, I discuss two approaches to auth working with separate frontend and backend applications, and some pros and cons of each approach. After watching this, you can decide to go to the Session-Based Auth section or Token-Based Auth section in this readme based on what you'd like to implement in your application.
Now it's choose-your-own-adventure time!
Completed code for this section is in session-auth-client
and session-auth-server
. You'll also find more notes in the SESSION.md readme.
Here are all the individual video links:
- Part 1: Rails Setup
- Part 2: Sign Up
- Part 2.1: Sign Up Continued
- Part 3: Login
- Part 4: Autologin
- Part 5: Logout
- Part 6: Authorization
- Part 7: Controller Refactor
- Part 8: Wrap Up
- Wrap Up Slides
Completed code for this section is in token-auth-client
and token-auth-server
. You'll also find more notes in the TOKEN.md readme. You can find also find a README and some server code from a lab on JWT Auth here: https://github.com/learn-co-curriculum/jwt-auth-rails
Here are all the individual video links: