Skip to content

Instantly share code, notes, and snippets.

View nk1tz's full-sized avatar
🌿
🔥 🤙

Nate nk1tz

🌿
🔥 🤙
  • Zaprite
View GitHub Profile
@nk1tz
nk1tz / app-to-app-delegated-authorization.md
Last active September 18, 2026 20:46
App-to-app delegated authorization: Zaprite and Lexe

App-to-app delegated authorization: Zaprite and Lexe

Executive summary

This architectural proposal covers a same-device connection flow: the user taps Connect Spending in Zaprite, approves access in Lexe on the same phone, and returns to Zaprite with a usable connection. It builds on Lexe's proposed connection flow and keeps Lexe's existing credential model. The aim is to agree with Lexe on the architecture: the security mechanisms, trust assumptions, and responsibilities of each side. Once those choices are agreed, a separate protocol specification will define the exact message formats, cryptographic parameters, and validation rules that both implementations must follow.

Challenge Solutions
1. Prove Zaprite approved the requestHow does Lexe know this exact connection request was approved by Zaprite? Recommended solution: Zaprite's server signs
@nk1tz
nk1tz / machine.js
Last active August 17, 2021 23:21
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions