Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MES-1053 - add support for databricks m2m oauth #154

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

walles2
Copy link
Contributor

@walles2 walles2 commented Dec 6, 2024

This PR adds the ability to support databricks m2m oauth. As part of this, we need to now include the databricks sdk package.

@walles2 walles2 requested a review from a team as a code owner December 6, 2024 19:03
Copy link

linear bot commented Dec 6, 2024

@walles2 walles2 requested review from mrostan and pxc-dev December 10, 2024 05:42
Copy link
Contributor

@mrostan mrostan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, left a minor comment

def _oauth_credentials_provider(self, connect_args: Dict) -> Callable:
# create the auth callable here because it can't be serialized
config = Config(
host=connect_args.get("server_hostname"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: super minor and just for consistency I'd define a constant for server_hostname

@walles2 walles2 added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 218ac52 Dec 10, 2024
5 checks passed
@walles2 walles2 deleted the MES-1053-dbx-m2m-oauth branch December 10, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants