triauth comes to Ruby
Add "Sign in with triauth" to any Ruby application in about 30 lines.
The triauth protocol now has an official Ruby client library. triauth-ruby brings "Sign in with triauth" to Ruby on Rails, Sinatra, and every other application built on Rack. A complete sign-in is two calls to the library and about 30 lines of code, with no passwords to store, protect, or reset.
The same library, in Ruby
triauth-ruby is a port of triauth-js, the reference implementation, function for function. The two libraries are checked against the same conformance suites, shared byte for byte, so a sign-in that works in JavaScript works the same way in Ruby. The gem has over 2,000 tests, enforces 95 percent line and branch coverage, and publishes the results of its AI-assisted security reviews in the repository. It runs on Ruby 3.2 and newer with zero runtime dependencies.
Get started
Install the gem, then follow the guide for your framework.
gem install --pre triauth # replace with latest versionThe triauth-ruby README has the full API reference and the security considerations to read before you deploy.
Tell us what you build
triauth-ruby is in beta and ready for evaluation and early production use. If you run into a problem, report it on the issue tracker. If you add triauth to a Ruby application, let us know, and we will gladly feature it in triauth everywhere. And if your stack speaks another language, tell us which one.
The Ruby logo is Copyright © 2006 Yukihiro Matsumoto, used under the Creative Commons Attribution-ShareAlike 2.5 License.
triauth news
Stay in the loop.
New libraries, integrations, and protocol updates, straight from the people building triauth. We write only when there is something worth saying.
Sign in with your own domain. No passwords.
triauth is free and decentralized. Create your identifier in a minute, or add “Sign in with triauth” to your own app in an afternoon.