Skip to content

Apply auth token --timeout to the inline login - #7337

Draft
pietern wants to merge 3 commits into
mainfrom
pietern/f07-7267-auth-token-timeout
Draft

pietern wants to merge 3 commits into
mainfrom
pietern/f07-7267-auth-token-timeout

Conversation

@pietern

@pietern pietern commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Changes

databricks auth token --timeout didn't apply to the browser login after "Create a new profile" in the profile picker: runInlineLogin used a fixed one-hour timeout. It now uses the flag, like auth login --timeout, and the flag's help text says so.

Why

The inline login was added in #7267.

Tests

TestLoadTokenCreateNewProfileAppliesTimeout drives the picker against a server that never answers the login and expects the deadline to fire.

This pull request and its description were written by Isaac.

The browser login run after "Create a new profile" in `auth token` used
the hardcoded one hour defaultTimeout instead of the --timeout flag,
because profile resolution happens before loadToken applies
args.tokenTimeout. Pass the flag value through resolveNoArgsToken to
runInlineLogin, as `auth login` does with its own --timeout.

Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 73e9fb2

Run: 42001848269

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 271 15 4:09
✅​ aws-windows-latest-4core-16gb 273 13 3:13
✅​ azure linux-2core-8gb 270 15 4:09
✅​ azure-windows-latest-4core-16gb 272 13 3:21
✅​ gcp linux-2core-8gb 271 15 3:57
✅​ gcp-windows-latest-4core-16gb 273 13 3:32
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:25 gcp-windows-latest-4core-16gb TestAccept
3:15 azure-windows-latest-4core-16gb TestAccept
3:07 aws-windows-latest-4core-16gb TestAccept

--timeout now also limits the inline browser login, so say so in the help
text. Add a changelog entry, as other fixes to this login flow do.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>

@maksim-zuev-db maksim-zuev-db left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The "Why" in the description is a bit wrong, the better wording would be "#7267 made the inline login honor a timeout, but hard-coded defaultTimeout; this PR uses --timeout instead."
All the rest looks good, thanks!

This branch has not been deployed

No deployments
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