End to end authentication flow
When a user opens a Superblocks App in a Databricks workspace:- Databricks authenticates the user and launches the app runtime.
- The Databricks App backend authenticates the user with Superblocks.
- Superblocks establishes a session for the user and evaluates Superblocks permissions.
- When the app runs a query or calls Databricks APIs, Superblocks gets a scoped Databricks API token using token exchange that ensures all actions run with the correct Unity Catalog permissions of the app’s service principal or end-user
How users are authenticated with Superblocks
When a Superblocks App runs inside a Databricks workspace, Databricks is responsible for authenticating the user. Superblocks then establishes its own session so it can identify the user and enforce Superblocks authorization. To do this securely, the Databricks App backend must authenticate itself to Superblocks. This is done using a Superblocks embed token. The embed token allows Superblocks to:- Trust the Databricks App runtime
- Associate the Databricks app with a Superblocks organization
- Issue short-lived authorization credentials for accessing the app as a Superblocks user
Creating an Embed Token
To create a Embed Token for authenticating with Superblocks, a Superblocks Admin should:- Log in to Superblocks
- Navigate to Access Tokens page in Organization Settings
- Create a new Embed Token for Databricks Apps
- Copy the token value securely
Storing the token in Databricks Secrets
Once the embed token has been created, a Databricks Workspace Admin should store the token as a Databricks Secrets. This will let you securely share the token with your Databricks Apps. To store the token as a Databricks Secret:- Create or select a Databricks secret scope
- Add a new secret with the embed token value
- Restrict access to the secret scope as needed
Reference the token in the Databricks App
With the secret stored as a Databricks Secret, developers can reference the secret in their app’sapp.yaml without ever seeing the token value.
For example:
Common issues
If the embed token is misconfigured, you may see:- The app loads in Databricks but fails to render
- Authentication errors during app startup
- Errors indicating the app is not authorized to embed
- The embed token exists and is active
- The token is stored correctly in Databricks secrets
- The Databricks App references the correct secret
- The token has not been revoked or rotated without updating Databricks
Next steps
- Deploy your app to Databricks
- Review the required environment configuration in the Environment setup guide

