Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

omniauth-identity

> 安全
Open source

A simple login and password strategy for OmniAuth.

363 stars0 likes0 views
WebsiteGitHub

About

A simple login and password strategy for OmniAuth.

OmniAuth::Identity

[![Version][versioni]][version] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: MIT][license-img]][license] [![Downloads Rank][dl-ranki]][dl-rank] [![CodeCov Test Coverage][codecovi]][codecov] [![Coveralls Test Coverage][coveralls-img]][coveralls] [![QLTY Test Coverage][qlty-covi]][qlty-cov] [![QLTY Maintainability][qlty-mnti]][qlty-mnt] [![CI Heads][3-hd-wfi]][3-hd-wf] [![CI Runtime Dependencies @ HEAD][12-crh-wfi]][12-crh-wf] [![CI Current][11-c-wfi]][11-c-wf] [![CI Truffle Ruby][9-t-wfi]][9-t-wf] [![CI JRuby][10-j-wfi]][10-j-wf] [![Deps Locked][13-️-wfi]][13-️-wf] [![Deps Unlocked][14-️-wfi]][14-️-wf] [![CI Test Coverage][2-cov-wfi]][2-cov-wf] [![CI Style][5-st-wfi]][5-st-wf] [![Apache SkyWalking Eyes License Compatibility Check][15--wfi]][15--wf]

if ci_badges.map(&:color).detect { it != "green"} ☝️ [let me know][✉️discord-invite], as I may have missed the [discord notification][✉️discord-invite].


if ci_badges.map(&:color).all? { it == "green"} ️ send money so I can do more of this. FLOSS maintenance is now my full-time job.

[![OpenCollective Backers][osc-backers-i]][osc-backers] [![OpenCollective Sponsors][osc-sponsors-i]][osc-sponsors] [![Sponsor Me on Github][sponsor-img]][sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][paypal-img]][paypal] [![Buy me a coffee][buyme-small-img]][buyme] [![Donate at ko-fi.com][kofi-img]][kofi]

How will this project approach the September 2025 hostile takeover of RubyGems? ️

I've summarized my thoughts in this blog post.

Synopsis

The omniauth-identity gem provides a way for applications to utilize a traditional username/password based authentication system without the need to give up the simple authentication flow provided by OmniAuth. Identity is designed on purpose to be as featureless as possible: it provides the basic construct for user management and then gets out of the way.

Info you can shake a stick at

Tokens to Remember [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace]
Works with JRuby [![JRuby 9.2 Compat][jruby-9.2i]][jruby-9.2-wf] [![JRuby 9.3 Compat][jruby-9.3i]][jruby-9.3-wf]
[![JRuby 9.4 Compat][jruby-9.4i]][jruby-9.4-wf] [![JRuby 10.0 Compat][jruby-10.0i]][jruby-10.0-wf] [![JRuby current Compat][jruby-c-i]][10-j-wf] [![JRuby HEAD Compat][jruby-headi]][3-hd-wf]
Works with Truffle Ruby [![Truffle Ruby 22.3 Compat][truby-22.3i]][truby-22.3-wf] [![Truffle Ruby 23.0 Compat][truby-23.0i]][truby-23.0-wf] [![Truffle Ruby 23.1 Compat][truby-23.1i]][truby-23.1-wf]
[![Truffle Ruby 24.2 Compat][truby-24.2i]][truby-24.2-wf] [![Truffle Ruby 25.0 Compat][truby-25.0i]][truby-25.0-wf] [![Truffle Ruby 33.0 Compat][truby-33.0i]][truby-33.0-wf] [![Truffle Ruby current Compat][truby-c-i]][9-t-wf] [![Truffle Ruby HEAD Compat][truby-headi]][3-hd-wf]
Works with MRI Ruby 4 [![Ruby current Compat][ruby-c-i]][11-c-wf] [![Ruby HEAD Compat][ruby-headi]][3-hd-wf]
Works with MRI Ruby 3 [![Ruby 3.0 Compat][ruby-3.0i]][ruby-3.0-wf] [![Ruby 3.1 Compat][ruby-3.1i]][ruby-3.1-wf] [![Ruby 3.2 Compat][ruby-3.2i]][ruby-3.2-wf] [![Ruby 3.3 Compat][ruby-3.3i]][ruby-3.3-wf] [![Ruby 3.4 Compat][ruby-3.4i]][ruby-3.4-wf]
Works with MRI Ruby 2 [![Ruby 2.4 Compat][ruby-2.4i]][ruby-2.4-wf] [![Ruby 2.5 Compat][ruby-2.5i]][ruby-2.5-wf] [![Ruby 2.6 Compat][ruby-2.6i]][ruby-2.6-wf] [![Ruby 2.7 Compat][ruby-2.7i]][ruby-2.7-wf]
Support & Community [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][‍expsup-upwork-img]][‍expsup-upwork] [![Get help from me on Codementor][‍expsup-codementor-img]][‍expsup-codementor]
Source [![Source on GitLab.com][src-gl-img]][src-gl] [![Source on CodeBerg.org][src-cb-img]][src-cb] [![Source on Github.com][src-gh-img]][src-gh] [![The best SHA: dQw4w9WgXcQ!][kloc-img]][kloc]
Documentation [![Current release on RubyDoc.info][docs-cr-rd-img]][yard-current] [![YARD on Galtzo.com][docs-head-rd-img]][yard-head] [![Maintainer Blog][maint-blog-img]][maint-blog] [![GitLab Wiki][gl-wiki-img]][gl-wiki] [![GitHub Wiki][gh-wiki-img]][gh-wiki]
Compliance [![License: MIT][license-img]][license] [![Apache license compatibility: Category A][license-compat-img]][license-compat] [![ilo-declaration-img]][ilo-declaration] [![Security Policy][security-img]][security] [![Contributor Covenant 2.1][conduct-img]][conduct] [![SemVer 2.0.0][semver-img]][semver]
Style [![Enforced Code Style Linter][rlts-img]][rlts] [![Keep-A-Changelog 1.0.0][keep-changelog-img]][keep-changelog] [![Gitmoji Commits][gitmoji-img]][gitmoji] [![Compatibility appraised by: appraisal2][appraisal2-img]][appraisal2]
Maintainer ️ [![Follow Me on LinkedIn][linkedin-img]][linkedin] [![Follow Me on Ruby.Social][ruby-mast-img]][ruby-mast] [![Follow Me on Bluesky][bluesky-img]][bluesky] [![Contact Maintainer][maint-contact-img]][maint-contact] [![My technical writing][‍♂️devto-img]][‍♂️devto]
... [![Find Me on WellFound:][✌️wellfound-img]][✌️wellfound] [![Find Me on CrunchBase][crunchbase-img]][crunchbase] [![My LinkTree][linktree-img]][linktree] [![More About Me][‍♂️aboutme-img]][‍♂️aboutme] [][berg] [][hub] [][hut] [][lab]

Compatibility

Compatible with MRI Ruby 2.4+, and concordant releases of JRuby, and TruffleRuby. CI workflows and Appraisals are generated for MRI Ruby 2.4+. This test floor is configured by ruby.test_minimum in .kettle-jem.yml and may be higher than the gem's runtime compatibility floor when legacy Rubies are not practical for the current toolchain.

The amazing test matrix is powered by the kettle-dev stack.

How kettle-dev manages complexity in tests

Gem Source Role Daily download rank
appraisal2 GitHub multi-dependency Appraisal matrix generation
appraisal2-rubocop GitHub RuboCop Appraisal generator integration
kettle-dev GitHub development, release, and CI workflow tooling
kettle-jem GitHub Appraisals & CI workflow templates
kettle-soup-cover GitHub SimpleCov coverage policy and reporting
kettle-test GitHub standard test runner and coverage harness
rubocop-lts GitHub Ruby-version-aware linting
turbo_tests2 GitHub parallel test execution

Federated DVCS

Find this repo on federated forges (Coming soon!)

Federated [DVCS][d-in-dvcs] Repository Status Issues PRs Wiki CI Discussions
[omniauth/omniauth-identity on GitLab][src-gl] The Truth [][gl-issues] [][gl-pulls] [][gl-wiki] Tiny Matrix ➖
[omniauth/omniauth-identity on CodeBerg][src-cb] An Ethical Mirror ([Donate][cb-donate]) [][cb-issues] [][cb-pulls] ➖ ⭕️ No Matrix ➖
[omniauth/omniauth-identity on GitHub][src-gh] Another Mirror [][gh-issues] [][gh-pulls] [][gh-wiki] Full Matrix
️ [Discord Server][✉️discord-invite] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [Let's][✉️discord-invite] [talk][✉️discord-invite] [about][✉️discord-invite] [this][✉️discord-invite] [library!][✉️discord-invite]

Enterprise Support

Available as part of the Tidelift Subscription.

Need enterprise-level guarantees?

The maintainers of this and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.

[![Get help from me on Tidelift][️entsup-tidelift-img]][️entsup-tidelift]

  • Subscribe for support guarantees covering all your FLOSS dependencies
  • Tidelift is part of [Sonar][️entsup-tidelift-sonar]
  • Tidelift pays maintainers to maintain the software you depend on! @Pointy Haired Boss: An [enterprise support][️entsup-tidelift] subscription is "[never gonna let you down][kloc]", and supports open source maintainers

Alternatively:

  • [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
  • [![Get help from me on Upwork][‍expsup-upwork-img]][‍expsup-upwork]
  • [![Get help from me on Codementor][‍expsup-codementor-img]][‍expsup-codementor]

✨ Installation

Install the gem and add to the application's Gemfile by executing:

bash
bundle add omniauth-identity

If bundler is not being used to manage dependencies, install the gem by executing:

bash
gem install omniauth-identity

⚙️ Configuration

This gem is compatible with a wide range of Ruby versions and Ruby ORMs, as of May 2025, version 3.1.

  • Tested in CI against:
    • Ruby 2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, ruby-head
    • JRuby 9.2, 9.3, 9.4, 10.0, jruby-head
    • omniauth 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, HEAD
    • activerecord 5.2, 6.0, 6.1, 7.0, 7.1, 7.2, 8.0, HEAD
    • sqlite3 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 2.0, 2.1
    • couch_potato 1.17+
    • mongoid 7.3, 7.4, 8.1, 9.0
    • bson 4.12, 4.15, 5.0, HEAD
    • sequel 5.86+
    • rom-sql (Ruby Object Mapper) 3.7+
  • At least 6 different database ORM adapters, which connect to 15 different database clients!

| Databases | Adapter Libraries

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rubyauthenticationauthentication-middlewareauthentication-strategyomniauth

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.