- Language
- Ruby
- Requires
- Ruby 3.2 or newer
- Install
gem install --pre triauth- License
- Apache-2.0
Get started
triauth-ruby is the official, open-source implementation of the triauth protocol for Ruby. It is a port of triauth-js, the reference implementation, function for function, and the two are checked against the same conformance suites. It has zero runtime dependencies, runs on Ruby 3.2 and newer, and ships as the triauth gem.
Install
While triauth-ruby is in beta, add --pre. A bare gem install triauth installs the 0.0.1 placeholder instead.
gem install --pre triauthOr add it to your Gemfile, with a requirement that admits the prerelease:
gem "triauth", ">= 1.0.0.beta"For a step-by-step guide to a sign-in form, see triauth for Ruby on Rails, triauth for Sinatra, or triauth for Rack.
What you can do with it
🔓 Sign in (authenticate)
Get a cryptographic proof that the user is in control of the
identifier(e.g.,john@example.com) and may be signed in with it.
Confirm that the user may remain signed in by checking that their keys were not revoked (
check), or by obtaining a fresh cryptographic proof of identity and key possession (ping).
✍️ Sign (sign)
Ask the user to review and sign your ToS or any message, with optional file attachments, and get back a transferable signature you can store, forward to a third party, or check yourself with
verify.
🏅 Attest (attest)
Collect third-party attestations about the user, such as "I am not a robot" or "I am over 18", each signed by a verification provider that you trust.
🔖 Stamp (stamp)
Obtain a silent background signature over a short message, to prove to any third party that the user is signed in with you.
🔎 Look up & verify (whois, verify, validate)
Read any identifier's public profile, devices, and keys (
whois); verify any triauth signature or stamp on its own (verify); or pre-check an identifier's format with no DNS lookup (validate).
The README on GitHub has the complete API reference, a runnable Sinatra example, and the security considerations to read before you deploy.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.