Patch
dagster_authkit.core.patch
Dagster Monkey-Patching Module
Injects user profile into Dagster sidebar with:
- Async/sync detection for cross-version Dagster compatibility
- Resilient injection that falls back to vanilla Dagster on failure
- Multiple CSS selector fallbacks for version compatibility
- Safe mode fallback (top-right corner) if client-side injection fails
- Idempotent patch application (safe to call multiple times)
apply_patches
apply_patches()
Apply all monkey-patches to Dagster webserver. Idempotent.
verify_patches
verify_patches()
Verify patches were applied successfully using the sentinel we set during apply_patches(). Returns False if patches are not active.