@Alex Ott​ thank you for your reply, I am working on scala implementation for this, any suggestions in that case ?

I have added ServicePrincipalCredentialsAuth and ServicePrincipalAuthBase as a normal classes in scala native instead of creating a separate jar for these 2 classes and packaged them as a part of my project jar

And using the below code for configuring.

val params: Map[String, String] = Map("authority" -> dbutils.secrets.get(scope = "nykvsecrets", key = "ehaadtesttenantid"),

                            "clientId" -> dbutils.secrets.get(scope = "nykvsecrets", key = "ehaadtestclientid"),

                            "clientSecret" -> dbutils.secrets.get(scope = "nykvsecrets", key = "ehaadtestclientsecret"))

val connectionString = ConnectionStringBuilder()

 .setAadAuthConnectionString(new URI("your-ehs-endpoint"), "your-ehs-name")

 .build

val ehConf = EventHubsConf(connectionString)

 .setConsumerGroup("consumerGroup")

 .setAadAuthCallback(new ServicePrincipalCredentialsAuth(params))

 .setAadAuthCallbackParams(params)

any issue you see with this ?