Reputation: 2249
I am creating a new CLI project where I want to use the Github API to create new repo's. When googling, I found out that Github has deprecated Authorization API in favour of Web Authorization flow. I can see that maybe we should use a local redirect URL in the CLI app but I don't understand how to get started with this. Basically I need to authorize users (preferably with the Web Flow) use their API from my CLI.
Any help is appreciated. Thanks.
Upvotes: 6
Views: 443
Reputation: 1425
You need to use authorization code flow with a Proof Key for Code Exchange. There is a really good article that I found here
Upvotes: 1