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

[wip][hackathon] Implement device code flow #1768

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Sep 12, 2024

Changes

This PR adds support for the device code flow in OAuth, defined in RFC 8628. To use this OAuth flow, users add the --device-code flag when invoking databricks auth login. They will be presented with a URL to follow and a user code to enter into the browser. After 5 seconds, the CLI will begin polling the /token endpoint with the device code retrieved from the authorization server until the user finishes authorizing the login attempt or the login timeout, default 1 hour, passes.

Tests

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.

1 participant