Skip to content
CAI
Software that uses CAICheck a score

jeremyevans/rodauth

56.0

Adequate · 6 November 2026

8.4k

lines of production code

Ruby

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add WebAuthn authentication and setup support with autofill capability

This change introduces three new JavaScript modules to handle WebAuthn (passkey) interactions: \webauthn\_auth.js\ handles the standard login flow by intercepting form submission to perform credential retrieval via the Web Authentication API; \webauthn\_setup.js\ manages the registration of new authenticators during account setup; and \webauthn\_autofill.js\ enables seamless, automatic login by leveraging the browser's conditional mediation API for autofill. All modules include logic to pack and unpack binary data (challenges, credentials, and responses) into base64url format for transmission to the server.

javascript · high confidence

Add database function migration helpers and version constants

The library now provides a new \lib/rodauth/migrations.rb\ module that generates database functions for PostgreSQL, MySQL, and Microsoft SQL Server to handle password hashing (including Argon2) and previous password checks securely within the database. It also introduces \lib/rodauth/version.rb\ with constants for the current version (2.48.0) and a numeric version identifier, enabling applications to programmatically check the Rodauth version.

lib/rodauth · high confidence

Add public website for Rodauth

A new public website has been added to the project, featuring a responsive layout built with Bootstrap 3 and syntax highlighting via highlight.js. The site includes navigation pages for 'Why', 'Documentation', and 'Development', and is generated using a Ruby script that compiles ERB templates into static HTML files.

www · high confidence

Add website styling and branding assets

The website now includes dedicated CSS styling for the navigation bar, typography, and content layout, along with a centered Rodauth logo SVG image to improve visual presentation.

www/public · high confidence

Documentation for new and updated authentication features

The documentation directory now includes detailed reference pages for several new and modified authentication capabilities. New features documented include account expiration (disallowing access after inactivity), active sessions (storing session IDs for revocation and global logout), audit logging (recording Rodauth actions to a database table), and email auth (passwordless login via email links). Additionally, documentation has been added or updated for the argon2 password hashing feature, change login, change password, change password notify, close account, close account email, confirm password, create account, disallow common passwords, disallow password reuse, and other core features. A historical changelog for versions prior to 2.0 has also been moved to CHANGELOG.old.

doc · high confidence

Initial demo site for Rodauth

A new demo application has been added to demonstrate Rodauth integration with the Roda web framework and Sequel ORM. The site configures a comprehensive set of authentication features including login, registration, password management, two-factor authentication (TOTP, SMS, WebAuthn), session management, and JSON API support. It uses an in-memory SQLite database by default (or PostgreSQL via environment variables) and includes specific configurations for CSRF protection, session secrets, and email/SMS mocking for testing purposes.

demo-site · high confidence

Initial release of Rodauth authentication framework

This commit introduces the initial version of Rodauth, a comprehensive authentication and account management framework for Rack applications built on Roda and Sequel. It establishes the project structure with a gemspec, Rakefile for building and testing, and a CHANGELOG documenting the 2.48.0 release. The framework supports a wide range of features including login, logout, password management, multi-factor authentication (TOTP, SMS, WebAuthn), JWT-based JSON APIs, and session management. It includes configuration for various databases (PostgreSQL, MySQL, SQL Server) and provides security enhancements like database function-based password hash protection and CSRF handling.

(repo-wide) · high confidence

Initial website launch with documentation and feature overview

The website is now available, providing users with a central hub to understand Rodauth. The index page offers a quick-start code example for setting up authentication in a Roda application. The 'Why' page details the framework's security, simplicity, and flexibility advantages over other Ruby authentication libraries, while listing its extensive feature set including WebAuthn, TOTP, JWT, and various password management capabilities. A comprehensive documentation page links to RDoc, feature configuration guides, and external integrations like OAuth and Rails. Additionally, a development page outlines how to report bugs, submit patches, and join the community via GitHub Discussions.

www/pages · high confidence

New authentication features: account expiration, active sessions, and HTTP Basic Auth

This release introduces three new capabilities to the authentication system. The account\_expiration feature allows administrators to automatically expire accounts based on inactivity or last login time, preventing access after a configurable period. The active\_sessions feature provides granular session management, including the ability to track all active sessions, enforce inactivity and lifetime deadlines, and perform global logout across all devices. Additionally, the http\_basic\_auth feature adds support for HTTP Basic Authentication, allowing applications to authenticate users via standard HTTP headers, with an optional fallback mechanism for existing sessions.

lib/rodauth/features · high confidence

Behavioural changes

Complete overhaul of authentication templates to support modular features and Bootstrap 4/5

The authentication UI templates have been completely rewritten to support a modular feature set (including WebAuthn, TOTP, SMS, email auth, and account management) and to be compatible with Bootstrap 4 and 5. The previous monolithic login form has been replaced by a composition of smaller, reusable sub-templates (e.g., \login-field\, \password-field\, \button\) that allow for granular configuration of form elements, labels, and error handling. This change introduces new pages and flows for two-factor authentication setup/management, password resets, account verification, and WebAuthn login, while also improving security by using HMACed secrets for OTP keys and preventing key leakage in referer headers.

templates · high confidence

Initial demo site interface with Bootstrap 4 styling

The demo site now features a new user interface built with Bootstrap 4, including a responsive layout and styled error messages. The home page displays the current authentication status, distinguishing between single-factor and multifactor (two-factor) login methods, and provides navigation links to account management actions such as changing login credentials, closing the account, and managing multifactor authentication settings.

demo-site/views · high confidence

Major refactoring of Rodauth plugin internals and removal of legacy code

The Rodauth plugin has undergone a significant internal restructuring. The previous implementation, which relied on a complex DSL with \Wrapper\ classes, dynamic method definition via \def\_auth\_method\, and a hardcoded list of \SUPPORTED\_FEATURES\, has been completely removed. The new codebase is significantly smaller, relying on standard Ruby patterns and enabling frozen string literals for performance and safety. This change likely breaks compatibility with any custom configurations or extensions that depended on the old DSL methods (such as \def\_auth\_method\, \def\_auth\_scope\_method\, or the \Wrapper\ class) and removes the explicit validation against a fixed set of features, allowing for more flexible feature integration.

lib/roda · medium confidence

New documentation guides for Rodauth configuration and features

The documentation has been reorganized into a new 'guides' directory, replacing the previous 'howto' structure. This update introduces a comprehensive set of new reference guides covering specific Rodauth configuration scenarios, including admin account activation, alternative login methods (such as usernames), case-insensitive logins, and customizing route paths and redirects. It also provides detailed instructions for managing password requirements, migrating hash algorithms (e.g., bcrypt to argon2), storing data in custom columns, and implementing multifactor authentication workflows. Additional guides address programmatic account creation, internationalization, and sharing configuration via inheritance.

doc/guides · high confidence

Refactored Rodauth configuration and routing architecture

The Rodauth authentication plugin has been restructured to improve performance and code organization. Configuration is now handled via a dedicated \FeatureConfiguration\ module, and route definitions use a new \route\ DSL that automatically generates \\_path\ and \\_url\ helpers while enforcing shape-friendly routing. The plugin now defaults to using Roda's \route\_csrf\ plugin for CSRF protection and supports JSON-only modes that skip unnecessary template rendering dependencies. Additionally, the \lib\ method allows loading Rodauth as a standalone library, and internal request features enable programmatic interaction with authentication logic.

rodauth · high confidence

Test coverage

Added SQL setup and teardown scripts for MSSQL and MySQL test environments; Added comprehensive test coverage for Rodauth features; Added migration tests for OTP unlock and SQLite JSONB support; Added view templates for authentication spec tests; Expanded test migration schema with multi-database and UUID support; Updated password migration tests to support multi-database and new features.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 56 → 56 (-0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 64 → 64 (+0.0)
  • Architecture 92 → 92 (+0.0)
  • Maturity 52 → 52 (+0.0)
  • Readiness 58 → 58 (+0.0)
  • Security 85 → 82 (-2.8)
  • Accessibility 52 → 52 (+0.0)

Resolved (4)

  • Documentation: no installation or build instructions (doc/release_notes/1.3.0.txt)
  • Documentation: no project overview (doc/release_notes/1.3.0.txt)
  • Documentation: no usage examples (doc/release_notes/1.3.0.txt)
  • Duplicate method names with identical signatures and likely identical intent. 'auth_cached_method' and 'cached_auth_method' appear to be redundant aliases or copy-paste errors.

New (2)

  • High secret: WD-SECRET-0005 (Rakefile)
  • Rotate the exposed credentials — git history can't be un-committed

Changes since last survey

  • 8 commits — 6 feature/other, 2 fixes

By area

  • (root) — 6 commits
  • spec/two_factor_spec.rb — 1 commit
  • spec/update_password_hash_spec.rb — 1 commit

Notable commits

  • fix: Fix new update_password_hash specs to work with RODAUTH_ALWAYS_ARGON2
  • fix: Fix non-deterministic failure in otp reuse in drift spec
  • change: Bump version to 2.49.0
  • change: Bump version to 2.50.0
  • change: Disallow returning to requested path if path starts with /\
  • change: Don't insert duplicate logout audit log when account is already loaded
  • change: Make otp feature prevent otp code reuse by using result of ROTP verify
  • change: Simplify audit_logging hook_action code

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

jeremyevans/rodauth was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit e42a9a90910857d264d37c62cb558841ebdbeeca — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.