cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

how do i get private_key_databricks_secret_key and certificate_databricks_secret_key,

slakshmanan
New Contributor II
 
how do i get private_key_databricks_secret_key and certificate_databricks_secret_key, for noninteractive mode 
 
 
from jadedbridpsdk import DbrxToAdfsNonInteractiveOAuth2ClientCredentialGrantTokenProvider
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
ida_client_id = "PC-107373-A038574-247333-PROD"
ida_resource_id = "JPMC:URI:RS-110586-116234-DatabricksOAuth-PROD"
databricks_secret_scope = "110586-ss-dev"
certificate_databricks_secret_key = "<cert secret key>"
private_key_databricks_secret_key = "<private secret key>"
tokenObj = DbrxToAdfsNonInteractiveOAuth2ClientCredentialGrantTokenProvider(client_id=ida_client_id,
                                                                            resource=ida_resource_id,
                                                                            adfs_token_endpoint=ida_token_url,
                                                                            databricks_secret_scope=databricks_secret_scope,
                                                                            certificate_databricks_secret_key=certificate_databricks_secret_key,
                                                                            private_key_databricks_secret_key=private_key_databricks_secret_key)
ida_token = tokenObj.getToken()['access_token']
0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group