I've created a Databricks App that is essentially a REST Api in Flask. It returns a json object. Data is in sql-warehouse. It works when calling directly in browser but I want to access it with rest api and Bearer token. But when I login with a service principal and get the access token from Azure I cannot access it. Databricks returns a 401.
With the same token I can call /api/2.1/jobs/runs/list so db recognize the user.