Cloudflare Turnstile
Play
14:30 CC

Cloudflare Turnstile

#379 Dec 11, 2022 pro
Cloudflare Turnstile delivers frustration-free, CAPTCHA-free web experiences to website visitors. In this episode, we'll look at implementing this a few different ways and resolving some issues with Turbo.

Authentication with Sorcery
Play
15:23 CC

Authentication with Sorcery

#321 Oct 31, 2021 pro
Sorcery is a stripped-down, bare-bones authentication library, with which you can write your own authentication flow. In this episode we look at creating the controllers and views for a simple authentication solution.

Reset Password from Scratch
Play
24:24 CC

Reset Password from Scratch

#316 Sep 26, 2021 pro
Continuing from Episode 300, we look at creating a password reset feature. We explore some of the security concerns around this feature and some mitigating options.

Safely Running Shell Commands
Play
8:26 CC

Safely Running Shell Commands

#151 Sep 16, 2018 pro
We may come across a need to run shell commands and Ruby has some built in methods which appear safe, but can introduce major security risks.

generates_token_for
Play
7:55 CC

generates_token_for

#380 Dec 18, 2022 pro
In Rails 7.1, we're going to get a new feature that will allow us to generate tokens for attributes. With generates_token_for, a token can embed data from a record. When using the token to fetch the record, the data from the token and the data from the record will be compared.