Skip to content

[HWORKS-3812] Git provider: log in with GitHub instead of a token - #799

Open
gibchikafa wants to merge 2 commits into
mainfrom
HWORKS-3812-github-device-login
Open

gibchikafa wants to merge 2 commits into
mainfrom
HWORKS-3812-github-device-login

Conversation

@gibchikafa

@gibchikafa gibchikafa commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Documents logging in to GitHub from Account settings → Git Providers instead of creating a personal access token, with the administrator setup (OAuth app with the device flow enabled, github_device_login_client_id). No screenshot yet.

Related pull requests

Jira: https://hopsworks.atlassian.net/browse/HWORKS-3812

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

@jimdowling jimdowling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review of HWORKS-3812 against the JIRA description.

  • [P2] The page should say that an organization may need to approve the OAuth app before its private repositories are reachable with the login (inline).

Review: Codex deep review (built-in review, then adversarial review) plus Claude, each finding checked against the code. P0 to P2 posted; P3 nits left out.

Comment on lines +60 to +61
The login is stored the same way as a personal access token, so everything that uses your Git provider credential uses it: Git operations on repositories, jobs, apps and agent deployments started from a Git repository, Jupyter and the terminal.
It replaces a token saved earlier for `github.com`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P2] Mention organization approval of the OAuth app

The login is an OAuth app token, not a personal access token. GitHub turns on OAuth app access restrictions by default for new organizations. Until an organization owner approves the app, its private repositories stay unreachable with this login (GitHub docs). Since the login replaces an earlier token for github.com, a user whose token worked can lose access to their organization's repositories after logging in.

Suggestion: add a note here. If clones of an organization's repositories fail after logging in, an owner of that organization has to approve the app (GitHub offers a Request button on the authorization page), or configure a token instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added in 6ebf8bf: a warning under the login steps (approval by an owner, the Request button, or going back to a token), a line in the administrator note, and a sentence telling users to enter only a code they started themselves.

…Hub login

Review round 2: the login is an OAuth app token, which an organization with
OAuth app restrictions blocks until an owner approves the app. Also which
proxies the login supports, and to enter only a code you started yourself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

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.

2 participants