example/config.ru in oauth2_dingtalk-0.1.0 vs example/config.ru in oauth2_dingtalk-0.1.1
- old
+ new
@@ -1,11 +1,11 @@
require 'bundler'
require 'sinatra'
require 'oauth2_dingtalk'
-ENV['APPID'] = "APPID"
-ENV['APPSECRET'] = "APPSECRET"
+ENV['APPID'] = 'APPID'
+ENV['APPSECRET'] = 'APPSECRET'
class App < Sinatra::Base
get '/' do
redirect '/auth/dingding'
end
@@ -19,10 +19,10 @@
content_type 'application/json'
MultiJson.encode(request.env)
end
end
-use Rack::Session::Cookie, :secret => "change_me"
+use Rack::Session::Cookie, secret: 'change_me'
use OmniAuth::Builder do
# note that the scope is different from the default
# we also have to repeat the default fields in order to get
# the extra 'connections' field in there