#coding: utf-8
require 'sinatra'
require 'omniauth'
require 'omniauth-github'
use Rack::Session::Cookie
use OmniAuth::Builder do
provider :github, 'b478ae6b31dd730b20d1','89f67d361fb348c959eaafea7e40f6db8b166366'
end
get '/' do
-HTML
a href='/auth/github'>Sign in with github/a>
HTML
end
post '/auth/:name/callback' do
auth = require.env['omniauth.auth']
end