Skip to content

[Bugfix] Fix backward incompatible change in SDK : browser auth flow#973

Merged
samikshya-db merged 1 commit into
databricks:mainfrom
samikshya-db:samikshya-chand_data/backwardIncompatibleChange
Sep 2, 2025
Merged

[Bugfix] Fix backward incompatible change in SDK : browser auth flow#973
samikshya-db merged 1 commit into
databricks:mainfrom
samikshya-db:samikshya-chand_data/backwardIncompatibleChange

Conversation

@samikshya-db
Copy link
Copy Markdown
Collaborator

@samikshya-db samikshya-db commented Aug 29, 2025

Description

  • This is a breaking change for browser based auth, this PR fixes it.

Testing

  • E2E manual testing
  • Added a Unit test too

Additional Notes to the Reviewer

NO_CHANGELOG=true

@samikshya-db samikshya-db marked this pull request as ready for review August 29, 2025 19:00
@samikshya-db samikshya-db changed the title Fix backward incompatible change in SDK [Bugfix] Fix backward incompatible change in SDK : browser auth flow Aug 29, 2025
.setHost(host)
.setClientId(clientId)
.setOAuthBrowserAuthTimeout(
Duration.ofHours(1)) // TODO : add a browser timeout connection config
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. what was the previous default?
  2. can we remove the todo? since this is a user interactive flow, i don't think we ever need this to be configurable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

  1. It used to wait indefinitely for user interaction, which can cause applications to hang indefinitely if
    users don't complete the authentication process.
  2. This is a feature ask because of legacy driver parity. Doc : https://docs.google.com/document/d/17wkI_I16_k6Igl0QPDWZkgbg-7VApebyO4D1yVeXfpM/edit?tab=t.0#heading=h.ig8zh4bt1u8z

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Also added this in the PR description for more context. Thanks

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you

.setHost(host)
.setClientId(clientId)
.setOAuthBrowserAuthTimeout(
Duration.ofHours(1)) // TODO : add a browser timeout connection config
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you

@samikshya-db samikshya-db merged commit a2b5fd0 into databricks:main Sep 2, 2025
12 of 14 checks passed
@samikshya-db samikshya-db deleted the samikshya-chand_data/backwardIncompatibleChange branch September 2, 2025 04:28
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.

3 participants