0.0
No release in over a year
A library for consuming and serving OpenID identities.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.0, >= 1.0.2
>= 13
~> 18.2, >= 18.2.1
~> 0.5, >= 0.5.2
~> 1.8
~> 1.37
~> 0.9, >= 0.9.37
~> 0.0, >= 0.0.10
>= 5, < 6

Runtime

~> 1.1, >= 1.1.4
 Project Readme

ruby-openid Logo by Aboling0, CC BY-SA 4.0

πŸ’Ž OpenID

Version Ruby Users Forum GitHub tag (latest SemVer) License: Ruby OR Apache Software License 2.0 Downloads Rank CodeCov Test Coverage Coveralls Test Coverage QLTY Test Coverage QLTY Maintainability CI Heads CI Runtime Dependencies @ HEAD CI Current CI Truffle Ruby CI JRuby Deps Locked Deps Unlocked CI Test Coverage CI Style

if ci_badges.map(&:color).detect { it != "green"} ☝️ let me know on Discord or RubyForum, as I may have missed the notification.


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 OpenCollective Sponsors Sponsor Me on Github Liberapay Goal Progress Donate on PayPal Buy me a coffee Donate at ko-fi.com

πŸ‘£ How will this project approach the September 2025 hostile takeover of RubyGems? πŸš‘οΈ

I've summarized my thoughts in this blog post.

🌻 Synopsis Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0 ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5

ruby-openid2 is the protocol library behind the Ruby OpenID stack. It provides consumer and server APIs, discovery, association management, stores, and the SReg, Attribute Exchange, PAPE, OAuth, and UI extensions for OpenID 1.x/2.0.

Use it directly when a framework adapter is not appropriate, or use rack-openid2 and open_id_authentication for Rack and Rails integration. This project implements OpenID, not OpenID Connect (OIDC).

πŸ’‘ Info you can shake a stick at

Tokens to Remember Gem name Gem namespace
Works with JRuby JRuby 9.4 Compat JRuby 10.0 Compat JRuby current Compat JRuby HEAD Compat
Works with Truffle Ruby Truffle Ruby 22.3 Compat Truffle Ruby 23.0 Compat Truffle Ruby 23.1 Compat
Truffle Ruby 24.2 Compat Truffle Ruby 25.0 Compat Truffle Ruby 33.0 Compat Truffle Ruby current Compat Truffle Ruby HEAD Compat
Works with MRI Ruby 4 Ruby current Compat Ruby HEAD Compat
Works with MRI Ruby 3 Ruby 3.0 Compat Ruby 3.1 Compat Ruby 3.2 Compat Ruby 3.3 Compat Ruby 3.4 Compat
Works with MRI Ruby 2 Ruby 2.7 Compat
Support & Community Join Me on Daily.dev's RubyFriends Get help from RubyForum Live Chat on Discord Get help from me on Upwork Get help from me on Codementor
Source Source on GitLab.com Source on CodeBerg.org Source on GitHub.com The best SHA: dQw4w9WgXcQ!
Documentation Current release on RubyDoc.info YARD on Galtzo.com Maintainer Blog GitLab Wiki GitHub Wiki
Compliance License: Ruby OR Apache Software License 2.0 Apache license compatibility: Unknown πŸ“„ilo-declaration-img Security Policy Contributor Covenant 2.1 SemVer 2.0.0
Style Enforced Code Style Linter Keep-A-Changelog 1.0.0 Gitmoji Commits Compatibility appraised by: appraisal2
Maintainer πŸŽ–οΈ Follow Me on LinkedIn Follow Me on Ruby.Social Follow Me on Bluesky Contact Maintainer My technical writing
... πŸ’– Find Me on WellFound: Find Me on CrunchBase My LinkTree More About Me 🧊 πŸ™ πŸ›– πŸ§ͺ

Compatibility

Compatible with MRI Ruby 2.7.0+, and concordant releases of JRuby, and TruffleRuby. CI workflows and Appraisals are generated for MRI Ruby 2.7.0+. 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.

kettle-dev Logo by Aboling0, CC BY-SA 4.0

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 Daily download rank for appraisal2
appraisal2-rubocop GitHub RuboCop Appraisal generator integration Daily download rank for appraisal2-rubocop
kettle-dev GitHub development, release, and CI workflow tooling Daily download rank for kettle-dev
kettle-jem GitHub Appraisals & CI workflow templates Daily download rank for kettle-jem
kettle-soup-cover GitHub SimpleCov coverage policy and reporting Daily download rank for kettle-soup-cover
kettle-test GitHub standard test runner and coverage harness Daily download rank for kettle-test
rubocop-lts GitHub Ruby-version-aware linting Daily download rank for rubocop-lts
turbo_tests2 GitHub parallel test execution Daily download rank for turbo_tests2

Federated DVCS

Find this repo on federated forges (Coming soon!)
Federated DVCS Repository Status Issues PRs Wiki CI
πŸ§ͺ ruby-openid/ruby-openid2 on GitLab The Truth πŸ’š πŸ’š πŸ’š 🐭 Tiny Matrix
🧊 ruby-openid/ruby-openid2 on CodeBerg An Ethical Mirror (Donate) πŸ’š πŸ’š βž– ⭕️ No Matrix
πŸ™ ruby-openid/ruby-openid2 on GitHub Another Mirror πŸ’š πŸ’š πŸ’š πŸ’― Full Matrix

Enterprise Support Tidelift

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

  • πŸ’‘Subscribe for support guarantees covering all your FLOSS dependencies
  • πŸ’‘Tidelift is part of Sonar
  • πŸ’‘Tidelift pays maintainers to maintain the software you depend on!
    πŸ“Š@Pointy Haired Boss: An enterprise support subscription is "never gonna let you down", and supports open source maintainers

Alternatively:

  • Ruby Users Forum
  • Live Chat on Discord
  • Get help from me on Upwork
  • Get help from me on Codementor

✨ Installation

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

bundle add ruby-openid2

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

gem install ruby-openid2

βš™οΈ Configuration

Create an OpenID::Consumer for each request with a session-like object and a durable store. The session holds the in-progress authentication transaction; the store holds associations and nonces shared across requests.

require "openid"
require "openid/consumer"
require "openid/store/filesystem"

store = OpenID::Store::Filesystem.new("tmp/openid")
consumer = OpenID::Consumer.new(session, store)

OpenID::Store::Memory is useful for tests and one long-running process, but it is not thread-safe or durable. Use Filesystem, Memcache, or a custom OpenID::Store implementation for deployments that need state shared across requests or processes. When serving as an OpenID provider, construct OpenID::Server::Server with the same kind of durable store and the public endpoint URL.

πŸ”§ Basic Usage

πŸ” Security

See SECURITY.md.

🀝 Contributing

If you need some ideas of where to help, you could work on adding more code coverage, or if it is already πŸ’― (see below) check issues or PRs, or use the gem and think about how it could be better.

We Keep A Changelog so if you make changes, remember to update it.

See CONTRIBUTING.md for more detailed instructions.

πŸš€ Release Instructions

See CONTRIBUTING.md.

Code Coverage

Coverage service badges

Coverage Graph

Coveralls Test Coverage

QLTY Test Coverage

πŸͺ‡ Code of Conduct

Everyone interacting with this project's codebases, issue trackers, chat rooms and mailing lists agrees to follow the Contributor Covenant 2.1.

🌈 Contributors

Contributors

Made with contributors-img.

Also see GitLab Contributors: https://gitlab.com/ruby-openid/ruby-openid2/-/graphs/main

⭐️ Star History Star History Chart

πŸ“Œ Versioning

This library follows Semantic Versioning 2.0.0 for its public API where practical. For most applications, prefer the Pessimistic Version Constraint with two digits of precision.

For example:

spec.add_dependency("ruby-openid2", "~> 3.0")
πŸ“Œ Is "Platform Support" part of the public API? More details inside.

Dropping support for a platform can be a breaking change for affected users. If a release changes supported platforms, it should be called out clearly in the changelog and versioned with that impact in mind.

To get a better understanding of how SemVer is intended to work over a project's lifetime, read this article from the creator of SemVer:

See CHANGELOG.md for a list of releases.

πŸ“„ License

The gem is available under the following licenses: Ruby, [Apache Software License 2.0](https://github.com/ruby-openid/ruby-openid2/blob/main/Apache Software License 2.0.md). See LICENSE.md for details.

If none of the available licenses suit your use case, please contact us to discuss a custom commercial license.

Β© Copyright

See LICENSE.md for the official copyright notice.

Copyright holders
  • Copyright (c) 2005-2007 tailor
  • Copyright (c) 2006 Josh Hoyt
  • Copyright (c) 2007-2008 http://j3h.us/
  • Copyright (c) 2007-2008 Kevin Turner
  • Copyright (c) 2007-2008 tailor
  • Copyright (c) 2007-2009 tailor
  • Copyright (c) 2008-2010 Carl Howells
  • Copyright (c) 2008 tailor
  • Copyright (c) 2008 tailor
  • Copyright (c) 2010 dbloete
  • Copyright (c) 2010 Kouhei Sutou
  • Copyright (c) 2010 Lilli
  • Copyright (c) 2010 Mike Mell
  • Copyright (c) 2011 mcary
  • Copyright (c) 2011-2012 nov matake
  • Copyright (c) 2011 Steven Davidovitz
  • Copyright (c) 2011 Tom Quackenbush
  • Copyright (c) 2012 Cal Heldenbrand
  • Copyright (c) 2012-2015 Dennis Reimann
  • Copyright (c) 2012 grosser
  • Copyright (c) 2013 Akira Matsuda
  • Copyright (c) 2013 Kendall Buchanan
  • Copyright (c) 2013 Kenichi Kamiya
  • Copyright (c) 2013 Marcel M. Cary
  • Copyright (c) 2013 Mike Dillon
  • Copyright (c) 2013, 2019 Tobias Haagen Michaelsen
  • Copyright (c) 2013 Zaid Zawaideh
  • Copyright (c) 2014 grosser
  • Copyright (c) 2014 Ken Dreyer
  • Copyright (c) 2014 ppretorius
  • Copyright (c) 2014 tsukasaoishi
  • Copyright (c) 2014 vivek
  • Copyright (c) 2017 Kazuhiro Serizawa
  • Copyright (c) 2018 Abraham Sangha
  • Copyright (c) 2018 IanAtLooker
  • Copyright (c) 2018-2019 Tobias Haagen Michaelsen
  • Copyright (c) 2019 Olle Jonsson
  • Copyright (c) 2019 Utkarsh Gupta
  • Copyright (c) 2019 Vadim Shaulski
  • Copyright (c) 2020 Randy Ebersole
  • Copyright (c) 2024-2026 Peter H. Boling

πŸ€‘ A request for help

Maintainers have teeth and need to pay their dentists. After getting laid off in an RIF in March, and encountering difficulty finding a new one, I began spending most of my time building open source tools. I'm hoping to be able to pay for my kids' health insurance this month, so if you value the work I am doing, I need your support. Please consider sponsoring me or the project.

To join the community or get help, use the RubyForum or Discord.

Ruby Users Forum Live Chat on Discord

To say "thanks!" ☝️ Join the community or πŸ‘‡οΈ send money.

Sponsor ruby-openid/ruby-openid2 on Open Source Collective πŸ’Œ Sponsor me on GitHub Sponsors πŸ’Œ Sponsor me on Liberapay πŸ’Œ Donate on PayPal

Please give the project a star ⭐ β™₯.

Many parts of this project are actively managed by a kettle-jem smart template utilizing StructuredMerge.org merge contracts.

Thanks for RTFM. ☺️

Field Value
Package ruby-openid2
Description πŸ’Ž A library for consuming and serving OpenID identities.
Homepage https://github.com/ruby-openid/ruby-openid2
Source https://github.com/ruby-openid/ruby-openid2
License Ruby OR Apache Software License 2.0
Funding https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/ruby-openid, https://thanks.dev/gh/pboling, https://tidelift.com/funding/github/rubygems/ruby-openid2, https://www.buymeacoffee.com/pboling