With this example, I can create gist with user autentification.
This is an example of the gist: https://gist.github.com/DiegoTc/2a49289ead1660134c88
There's a question I asked and answer on stackoverflow for this:http://stackoverflow.com/questions/24238888/how-to-authenticate-with-github-with-node-and-express/