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.
You can select user-level permissions from within your GitHub App's settings in the User permissions section of the Permissions & webhooks page. For more information on selecting permissions, see "Editing a GitHub App's permissions."
You need to use authorization code flow with a Proof Key for Code Exchange. There is a really good article that I found here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With