Ruby SDK
Ruby 3+ · LibreAuth native client · Protocol v2 available (Enterprise)
Ruby
Ruby 3+
Setup Guide
authority.rb · session_gate.rb · OpsBridge after check · Boot/OnInit/MarkLicensed · OpenSSL AES-GCM iv16
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
ruby/libreauth.rb - Ed25519 key: from
init→ Response Signing - Test: Live API · Init docs
Install / Dependencies
Terminal
# v2: libreauth_v2.rb · inject verify_sig → /api/v2/
Code Example
Ruby
require_relative 'session_gate'
SessionGate.boot(19079)
SessionGate.on_init(app.init!)
app.license(key, hwid)
SessionGate.mark_licensed
Quick Test
Test
ruby -r ./libreauth.rb -e "LibreAuth.new('App','OWNER','1.0','https://libreauth.nutexe.dev/api/1.3/').init"
Protocol v2 (Enterprise)
INFO
Requires Enterprise plan. Endpoint
https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.Source: ruby/libreauth_v2.rb
Ruby · v2
require_relative 'session_gate'
SessionGate.boot(19079)
SessionGate.on_init(app.init!)
app.license(key, hwid)
SessionGate.mark_licensed
More Links
- ← All Client SDKs
- 1.x source: View libreauth.rb
- Protocol v2: View libreauth_v2.rb · docs
- Interactive API docs
- Response Signing