Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow OAuth authentication dance with no local webserver #33
I'd like to be able to do the OAuth2 dance with no local webserver at all, i.e. by manually copy-pasting a URL and then an authorization code. This is clearly less exciting as a user experience, but is sometimes a necessity (I often find myself doing the auth dance on a machine which isn't visible to the outside world, or only has SSH access).
I've actually got a version of this I've been using locally, and I'll submit a pull request shortly. In particular, I added an extra
So I've hit everything in this change and squashed, thinking I was done. After that, I realized I should probably add a test, but I couldn't think of anything terribly meaningful to test without doing some sort of mocking/stubbing.
Would it be worth adding a test to confirm that in a non-interactive session, trying to say