Using JWT for User Identification in Databricks Cluster with FGAC¶
Pre Read
You should read how Privacera uses JWT for authentication before proceeding with this topic.
Prerequisites
Make sure your administrator as configured your cluster with the required settings as mentioned in the Configuring Databricks Cluster FGAC with JWT section.
This section is applicable for both Self Managed and PrivaceraCloud deployments. It describes how to use JWT for user identification in Databricks clusters with FGAC.
JWT token overrides the logged-in user identity.
Using JWT authentication is only recommended for job clusters
When you are using Databricks Notebook or DatabricksSQL with FGAC, then it is not possible to pass custom Spark Configuration for each user session. So when the token is added to the file system and the configuration is set at the cluster level, then all users will be treated as the user in the JWT token.
-
Set the following configuration while creating the Databricks cluster:
-
You can copy the JWT token file to Spark cluster using the following steps:
- Prev Connector Guide