Skip to content

Instantly share code, notes, and snippets.

View williamharmer-db's full-sized avatar

williamharmer-db

View GitHub Profile
@williamharmer-db
williamharmer-db / auth.py
Last active October 7, 2025 15:40
AAD authentication with Databricks
#!/usr/bin/env python3
"""
Databricks API Authentication using Azure AD PublicClientApplication
This script demonstrates how to authenticate with Databricks APIs using Azure AD
with interactive user sign-in flow.
Features:
- Uses MSAL PublicClientApplication for user authentication
- Direct token acquisition from Azure AD (no token exchange)