# binarylogic/authlogic

A simple ruby authentication solution.

Repository: https://github.com/binarylogic/authlogic
Canonical: https://ross.abutalabs.com/products/authlogic
Homepage: http://rdoc.info/projects/binarylogic/authlogic
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-02-08T21:22:37+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 66, release rhythm 35, longevity 100
- inputs: {"age_days": 6522, "days_push": 206, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4344, forks 633 (observed 2026-08-28T04:08:46.155335+00:00)

## What it is
Authlogic is an unobtrusive Ruby authentication library built on ActiveRecord, treating user sessions as models. It handles login, logout, remember-me, and session persistence for Rails applications without generators or controllers scaffolding.

## Use cases
- add user login and logout to a rails app
- authenticate users with a password against activerecord models
- manage user sessions with remember-me and timeout support
- replace devise with a simpler authentication solution
- implement csrf-protected session auth in rails

## When to choose
- you want model-based, unobtrusive authentication in a Ruby on Rails app
- you need fine-grained control over session behavior without generator-generated code
- you prefer a lightweight alternative to Devise

## When to avoid
- you need a batteries-included solution with views, mailers, and OAuth out of the box
- you are building an API-only app needing token/JWT authentication
- you are not using ActiveRecord or Rails

## Facets
- artifact type: library
- maturity: stable
- function: auth, middleware
- domain: web-development, backend, security
- platform: ruby
- tags: activerecord, rails, session-management, user-authentication, login, web-server

## Member repositories
- binarylogic/authlogic (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.155335+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:35.191218+00:00, confidence not recorded.
  - readme: https://github.com/binarylogic/authlogic (fetched 2026-08-28T04:08:46.155335+00:00, sha e2034b9599db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
