Lift-and-use code examples for the moving pieces of the architecture. Every snippet here is pulled from working code in this repo — links to the canonical source file are included so you can read the full context.
Pattern note: snippets that depend on identity propagation come in two flavors:
- Pattern A — SP-per-client (uses
session_user()). Working today on any Databricks workspace. Shown by default. - Pattern B — Shared SP + custom claims (uses
current_oauth_custom_identity_claims()). Pending Genie surface validation; shown where it differs.