Repository navigation
feat(license): Ed25519 asymmetric license minting, Dodo webhooks & RFC 8628 device flow - #40
Merged
Conversation
… 8628 device flow - Add RFC 8037 Ed25519 license minting and zero-egress offline verification in src/lib/license-engine.js - Implement RFC 8628 OAuth 2.0 Device Authorization session store in src/lib/device-store.js - Automate Dodo Payments webhook handling in /api/webhooks/dodo to mint licenses and auto-approve device sessions - Add Cloudflare Functions & Next.js endpoints for /api/device/code, /api/device/token, /api/device/approve, and /api/v1/license/public-key - Add interactive workstation authorization UI at /device - Add ritualdev unified CLI in bin/ritualdev.js with login, status, verify, and logout - Add comprehensive 26-test unit & integration test suite in tests/license-and-device-flow.test.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1: Unified Licensing, Dodo Webhooks & /device RFC 8628 Flow
Summary of Changes:
Asymmetric Ed25519 License Engine (
src/lib/license-engine.js):free,starter,pro,team,enterprise) and JWKS endpoint.RFC 8628 Device Authorization Grant Store (
src/lib/device-store.js):device_codeand unambiguous 20-character base-20user_code(XXXX-YYYY).pending,approved,denied,expired).Dodo Payments Automated Minting & Fulfillment (
src/lib/dodo-webhook.js):payment.succeeded.user_codeis provided in payment metadata.Cloudflare Functions & Next.js Endpoints:
/api/device/code&/api/device/token&/api/device/approve/api/v1/license/public-key&/api/v1/license/verify/api/webhooks/dodoInteractive Workstation Approval UI (
/device):user_codefrom query param.Unified CLI (
bin/ritualdev.js):ritualdev login,ritualdev status,ritualdev verify <token>,ritualdev logout.Automated Test Suite (
tests/license-and-device-flow.test.mjs):