I'm trying to write a web application that works like this:
Now, I wonder how I should authenticate with Github. I don't want the user to have to give me his Github password so I'm thinking about using OAuth. But as I understand it, OAuth persistent authentication only works if the user is using a web browser and is currently logging into Github. However I want to be able to post the Gist anytime the user sends me an email. What should I do?
Many thanks.
The API's documentation speaks of two different kinds of "OAuth" tokens.
client_secret
, client_id
) that you get for whatever application you're building.