test/sinatra/my_app.rb in rack-oauth2-server-1.1.1 vs test/sinatra/my_app.rb in rack-oauth2-server-1.2.0
- old
+ new
@@ -14,10 +14,10 @@
# 3. Obtaining End-User Authorization
get "/oauth/authorize" do
session["oauth.authorization"] = oauth.authorization
- "client: #{oauth.client.display_name}\nscope: #{oauth.scope.join(", ")}"
+ "client: #{oauth.client.display_name}\nscope: #{oauth.scope.join(", ")}\nauthorization: #{oauth.authorization}"
end
post "/oauth/grant" do
oauth.grant! session["oauth.authorization"], "Superman"
end