We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44008e1 commit 57954a7Copy full SHA for 57954a7
lib/grape/middleware/auth/oauth2.rb
@@ -60,13 +60,12 @@ def verify_token(token)
60
end
61
62
def error_out(status, error)
63
- throw :error, {
+ throw :error,
64
:message => error,
65
:status => status,
66
:headers => {
67
'WWW-Authenticate' => "OAuth realm='#{options[:realm]}', error='#{error}'"
68
}
69
- }
70
71
72
spec/spec_helper.rb
@@ -1,6 +1,8 @@
1
$LOAD_PATH.unshift(File.dirname(__FILE__))
2
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
4
+$stdout = StringIO.new
5
+
6
require 'grape'
7
8
require 'rubygems'
0 commit comments