This is a simple Sinatra server to get an OAuth token from Twitch. I've published this to Heroku for use with my free Twitch text-to-speech chat app Twacker.
Ruby 2.1.1
Sinatra 1.4.5
Slim
SASS
Foreman
This is for use with Heroku, you can remove it from
the gemfile if you're not using Heroku. I had to
specifically add it otherwise Heroku forces Ruby 2.0.0
All you need to do is add your own public Twitch client ID for your app.
Twitch OAuth Server by Michael R. Bethany is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://github.com/mikbe/twitch_oauth_server.