cube icon indicating copy to clipboard operation
cube copied to clipboard

Allow Custom Authentication type configuration for DB connection

Open rgrohitg opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. Current databricks connection setup allows only access token, and cannot be changed to configure other type

Describe the solution you'd like to allow authType for databrciks or any other setup, where based on organisation authentication mechanism we can configure it. in this case if I want to confugure OAuth configuration for databricks , there is no way to configure it.

Describe alternatives you've considered No alternative solution, unable to use cubejs as auth mechanism is not supported by my organisation authenticatoin mechanism of Oauth.

rgrohitg avatar Aug 25 '23 19:08 rgrohitg

Hi @rgrohitg 👋

As far as I see, the official Databricks SQL Driver for Node.js that Cube uses internally supports OAuth authentication, so that might in turn be supported by Cube as well.

Please feel free to check code examples and source code of that driver.

igorlukanin avatar Aug 31 '23 12:08 igorlukanin

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

github-actions[bot] avatar Aug 31 '23 12:08 github-actions[bot]

I am also interested in if we can leverage oauth for the db connection. We rely on the DB to manager user permissions, and can't afford to replicate complex permissions within cube itself. Need to query on behalf of the user.

sdotz-cb avatar Jan 30 '24 01:01 sdotz-cb