You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh auth login: add a way of predicting Oauth flow redirect port #105
in current entrerprise setup the device code flow and the Personal Access Tokens are being depreciated for security reasons. CyberSec teams prefer the interactive flow that can be better controlled with MFA and so on.
However, most users are using gh from a remote machine with vscode for instance so they would need to initiate port forwarding from their IDE to the actual remote HTTP server that is started by gh auth login before the authentication attempt.
Being able to use redirect port from the command line or an environment variable would enable developpers to pre-configure port forwarding to achieve interactive logon with Oauth.
changed the title [-]GH AUTH LOGIN add a way of predicting Oauth flow redirect port[/-][+]`gh auth login`: add a way of predicting Oauth flow redirect port[/+]on Jan 26, 2026
Activity
SamMorrowDrums commentedon Jan 26, 2026
FWIW GitHub MCP Server is taking this approach: github/github-mcp-server#1836 (even bundled in docker), with a port binding and flag.
[-]GH AUTH LOGIN add a way of predicting Oauth flow redirect port[/-][+]`gh auth login`: add a way of predicting Oauth flow redirect port[/+]