Hi Databricks Team,
Thanks for the response.
I reviewed the Unified Authentication documentation. From what I understand, the supported authentication methods are PAT, M2M (Service Principal OAuth), and U2M.
For my use case, external IoT devices are calling a Databricks App (FastAPI endpoint).
Both M2M and U2M require OAuth access tokens that expire after 3600 seconds. This means the devices must frequently re-authenticate, which is not practical for IoT devices deployed in the field.
I also tried using a User PAT to call the Databricks App endpoint. This always returns 401 Unauthorized, even though the user has access to the Databricks App and the same PAT works for Databricks REST APIs. It only fails for Databricks Apps endpoints.
So currently, OAuth tokens are too short-lived for IoT use cases, and PATs do not seem to work for Databricks Apps.
Could you please clarify the following:
Is PAT-based authentication officially supported for Databricks Apps, or is it not supported by design?
Is there any supported way to use long-lived or non-interactive authentication for external systems such as IoT or edge devices?
If neither PAT nor long-lived tokens are supported, what is the recommended architecture for this scenario, such as using a proxy service or token broker?