gonzalo-bulnes/simple_token_authentication
Simple (and safe*) token authentication for Rails apps or API with Devise. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4644
- days_rel: n/a
- days_push: 638
- n_releases_24m: 0
Adoption not part of the score
1504 stars · 233 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby gem that adds simple token authentication to Rails applications or APIs using Devise. It packages José Valim's recommended safe token authentication approach, providing token generation, revocation, and comparison with configurable options.
Use cases
- add token authentication to a Rails API with Devise
- implement single-use sign-in links sent by email
- generate and revoke authentication tokens for users
- securely compare authentication tokens in Rails
- replace the token authentication removed from Devise
- authenticate mobile or API clients against a Rails backend
When to choose
- you already use Devise in a Rails app and need token-based authentication
- you understand replay attacks and can mitigate them in your protocol
- you need single-use sign-in tokens such as email magic links
- you want a minimal, flexible token mechanism rather than a full JWT solution
When to avoid
- you need protection against replay attacks out of the box
- you want a complete, audited authentication protocol without designing it yourself
- you need JWT or OAuth2-style token flows
- your threat model requires independently audited security
Facets
library · maturity maintenance
auth security web-development apis ruby devise rails token-authentication mongoid api-authentication gem
1 source
- readme: https://github.com/gonzalo-bulnes/simple_token_authentication · fetched 2026-08-28 · a5057a8a6341
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gonzalo-bulnes/simple_token_authentication | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="gonzalo-bulnes/simple_token_authentication")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem