Previous: , Up: GitHub API Authentication---Username and Password--Basic   [Index]


1.1.4.3 What are the alternatives to Basic authentication

Well, the Basic authentication party is over soon, so make sure to use alternative means of authentication before November 2020.

You can do one of two things.

  1. Ask your users to create a personal access token and share that with you.
  2. Use GitHub’s OAuth web application flow.

Now 2. is a nicer user experience, but it’s easier said that done. Luckily, I have two blog posts lined up that will help you:

  1. OAuth: How to implement the OAuth web flow using a server and a client
  2. CLI: How to use the OAuth web flow for CLI apps.