You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -430,13 +430,18 @@ rspec spec/client_spec.rb
430
430
rspec spec/integration/
431
431
```
432
432
433
+
## License assertion JWT (RS256 + JWKS)
434
+
435
+
When Core API returns **`license_token`** and **`license_jwks_uri`**, verify offline with **`LicenseChain::LicenseAssertion.verify_license_assertion_jwt`** (`jwt` gem + JWKS fetch; claim **`token_use`** = **`licensechain_license_v1`**). A minimal **JWKS-only** CLI (no prior `verify` call in-process) is **[`examples/jwks_only.rb`](examples/jwks_only.rb)** — set **`LICENSECHAIN_LICENSE_TOKEN`** and **`LICENSECHAIN_LICENSE_JWKS_URI`** (optional **`LICENSECHAIN_EXPECTED_APP_ID`**), then `ruby examples/jwks_only.rb` (same env names as Go/Rust/PHP; [JWKS_EXAMPLE_PRIORITY](https://github.com/LicenseChain/sdks/blob/main/docs/JWKS_EXAMPLE_PRIORITY.md)).
436
+
433
437
## 📝 Examples
434
438
435
439
See the `examples/` directory for complete examples:
436
440
437
441
-`basic_usage.rb` - Basic SDK usage
438
442
-`advanced_features.rb` - Advanced features and configuration
439
443
-`webhook_integration.rb` - Webhook handling
444
+
-`jwks_only.rb` — RS256 `license_token` via JWKS only ([JWKS_EXAMPLE_PRIORITY](https://github.com/LicenseChain/sdks/blob/main/docs/JWKS_EXAMPLE_PRIORITY.md))
440
445
441
446
## 🤝 Contributing
442
447
@@ -471,19 +476,19 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
471
476
---
472
477
473
478
**Made with ❤️ for the Ruby community**
474
-
475
-
## LicenseChain API (v1)
476
-
477
-
This SDK targets the **LicenseChain HTTP API v1** implemented by the open-source API service.
478
-
479
-
-**Production base URL:**https://api.licensechain.app/v1
480
-
-**API repository (source of routes & behavior):**https://github.com/LicenseChain/api
481
-
-**Baseline REST mapping (documented for integrators):**
482
-
- GET /health
483
-
- POST /auth/register
484
-
- POST /licenses/verify
485
-
- PATCH /licenses/:id/revoke
486
-
- PATCH /licenses/:id/activate
487
-
- PATCH /licenses/:id/extend
488
-
- GET /analytics/stats
489
-
479
+
480
+
## LicenseChain API (v1)
481
+
482
+
This SDK targets the **LicenseChain HTTP API v1** implemented by the open-source API service.
483
+
484
+
-**Production base URL:**https://api.licensechain.app/v1
485
+
-**API repository (source of routes & behavior):**https://github.com/LicenseChain/api
486
+
-**Baseline REST mapping (documented for integrators):**
0 commit comments