Skip to content

Use aiohttp.BasicAuth instead of HTTPBasicAuth for aiohttp session in databricks hook#34590

Merged
phanikumv merged 1 commit into
apache:mainfrom
hussein-awala:databricks_deferrable
Sep 25, 2023
Merged

Use aiohttp.BasicAuth instead of HTTPBasicAuth for aiohttp session in databricks hook#34590
phanikumv merged 1 commit into
apache:mainfrom
hussein-awala:databricks_deferrable

Conversation

@hussein-awala

Copy link
Copy Markdown
Member

closes: #34450

Databricks hook uses aiohttp client session for async methods, but in the method _a_get_sp_token, we use HTTPBasicAuth instance to provide basic authentication credentials which is not compatible with aiohttp sessions. This PR fixes the issue by providing the credentials using aiohttp.BasicAuth instance as we do in the other methods.

@phanikumv phanikumv merged commit a1ef232 into apache:main Sep 25, 2023
@rinzool

rinzool commented Oct 5, 2023

Copy link
Copy Markdown

Hi @hussein-awala, thanks for the fix of #34450
Do you know where a new version of the databricks provider will be deployed with this fix? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DatabricksRunNowDeferrableOperator not working with OAuth

4 participants