AFAL Rails Authentication

•
1
•

Implements secure OmniAuth-based authentication for Ruby on Rails applications using the AFAL Identity Provider.

The afal-auth skill provides a standardized framework for integrating Rails applications with the AFAL Identity Provider (id.afal.mx). It enforces secure, session-based authentication using a database-backed model inspired by the 37signals pattern, ensuring full auditability of user logins including IP addresses and user agents. By automating the setup of OmniAuth strategies, user mapping, and centralized authentication concerns, it allows developers to implement robust sign-in flows while maintaining strict compliance with AFAL's security standards and avoiding the complexities of third-party libraries like Devise.

Key Features

01Automated OmniAuth strategy configuration for AFAL IdP
021 GitHub stars
03Opt-out controller authentication patterns for secure-by-default access
04Standardized User model mapping for IdP-provided roles and organizations
05Database-backed session management with IP and User-Agent tracking
06Pre-configured Minitest helpers for rapid authentication testing

Use Cases

01Integrating a new Rails application with the centralized AFAL IdP
02Setting up multi-tenant session management based on IdP organization data
03Replacing legacy password-based authentication with OAuth2 single sign-on