This is a Python demo on how to work with GitHub OAuth. You may also use this application to increase your GitHub API quota. For more information on this topic, please see my blog post.
OAuth stands for Open Authorization, and is a simple protocol to grant third-party application access to user data without giving them the passcodes. Common use cases of OAuth include user authentication (e.g. login with Github) and authorizing third-party application to user data (ByteByteGo made a great video on this. There are normally three players involved in an OAuth process, the user, the data holder (GitHub), and the third-party application (this demo).
sequenceDiagram
participant U as User
participant D as "This demo"
participant G as Github
U->>G: 1. Request authorization
activate G
G-->>G: 2. Authorizes user
deactivate G