gleich / fgh

📁 Automate the lifecycle and organization of your cloned GitHub repositories
MIT License
142 stars 17 forks source link

Discussion: OAuth instead of PAT #2

Closed cjdenio closed 4 years ago

cjdenio commented 4 years ago

Description

The login process could be simplified by implementing OAuth instead of requiring the user to generate a PAT.

Looking at this line in the GitHub CLI, it seems perfectly safe to embed OAuth credentials in a CLI.

gleich commented 4 years ago

Oh, I forgot you could do this! Thanks, @cjdenio!

cjdenio commented 4 years ago

I'd be happy to write this (but no worries if you want to do it!)

gleich commented 4 years ago

That would be great @cjdenio! Just invited you as a collaborator.

cjdenio commented 4 years ago

Awesome, thank you! I could have just forked it, but this works too :smile:

gleich commented 4 years ago

Do you need me to make a new OAuth app?

cjdenio commented 4 years ago

Sure! You'll want to set the redirect URL to http://localhost:9000/callback