authentication-flow

Generate Rails 8 authentication with users, sessions, and password resets.

Updated Nov 1, 2025
One-click install
npx skills add https://github.com/nschneble/rails-superstack --skill authentication-flow-nschneble
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authentication-flow
Source: https://github.com/nschneble/rails-superstack/tree/main/.agents/skills/authentication-flow
Command: npx skills add https://github.com/nschneble/rails-superstack --skill authentication-flow-nschneble

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Implements a complete authentication flow for Rails 8, providing user sign-up, login, logout, session management, and password reset capability to secure applications.

Core Features & Use Cases

  • Built-in Rails 8 authentication generator creates User, Session, and Current models plus controllers and views for sign-in and sign-out.
  • Provides session management with secure cookies and a centralized Current store for per-request user context and access control.
  • Includes a password reset workflow and authentication concern to enforce authentication across controllers and routes.

Quick Start

Run bin/rails generate authentication and then bin/rails db:migrate to bootstrap the authentication system.

Frequently Asked Questions about authentication-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Rails 8 authentication for user sign-in and sign-out?

Rails 8 authentication setup is automated by generating User, Session, and Current models alongside controllers and views. Running the built-in authentication generator creates the necessary migrations and routes to manage user sign-in, sign-out, and session management.

What does the Rails 8 built-in authentication generator include?

The Rails 8 authentication generator includes User, Session, and Current models, plus controllers and views for sign-in and sign-out. It provides session management with secure cookies, a centralized Current store for per-request context, and a password reset workflow.

Does this Rails authentication flow support password reset functionality?

Password reset functionality is fully supported within the Rails 8 authentication flow. The generator includes a dedicated password reset workflow and an authentication concern to enforce access control across controllers and protected routes.

How do I enforce access control across protected routes in Rails 8?

Access control across protected routes in Rails 8 is enforced using an included authentication concern. The generated flow utilizes a centralized Current store for per-request user context, securing controllers throughout the application.

Can I use this authentication generator with Rails versions older than 8.1?

This authentication generator is designed specifically for Rails 8.1+ projects. It relies on the framework's built-in authentication features and the Current model pattern introduced in Rails 8 to manage sessions and access control.