cli/internal
Mislav Marohnić 60eebd2896 Implement OAuth Device Authorization flow
Before, we implemented the OAuth app authorization flow which requires a
callback URL. To provide such a URL, we had to spin up a local HTTP
server, which was brittle and did not cover cases where a person might
want to authenticate with a browser that runs on a different machine
than the GitHub CLI process.

This implements the OAuth Device Authorization flow where the user is
given a one-time code and asked to paste it in the browser flow. There
is no callback URL, so we can avoid spinning up a local server, and the
user may open a browser on any of their devices, as long as they provide
the correct one-time code.

If the Device Authorization flow is detected to be unavailable for the
OAuth app (right now, it's specifically enabled for GitHub CLI) or for
an older GitHub Enterprise instance, this falls back to the old app
authentication flow.
2020-08-13 19:21:08 +02:00
..
config Implement OAuth Device Authorization flow 2020-08-13 19:21:08 +02:00
ghinstance Add ghinstance tests 2020-07-27 20:09:57 +02:00
ghrepo isolated clone command 2020-07-23 16:40:31 -05:00
run move preparecmd and Runnable to its own package 2020-03-23 16:32:29 -05:00