aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/http_authentication.rb
diff options
context:
space:
mode:
authorphoet <phoetmail@googlemail.com>2015-02-26 16:01:26 +0100
committerphoet <phoetmail@googlemail.com>2015-06-01 11:41:26 +0200
commit4b4e890781c788aa63c531d7fec19797656adda0 (patch)
tree179fde2b7cecb1711e30e5ec6334168cbe544efc /actionpack/lib/action_controller/metal/http_authentication.rb
parent90918b5f227b77b8b4fead67cfcff9339cd13031 (diff)
downloadrails-4b4e890781c788aa63c531d7fec19797656adda0.tar.gz
rails-4b4e890781c788aa63c531d7fec19797656adda0.tar.bz2
rails-4b4e890781c788aa63c531d7fec19797656adda0.zip
allow `Bearer` as well as `Token`
Diffstat (limited to 'actionpack/lib/action_controller/metal/http_authentication.rb')
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb
index 32c3c9652f..fb0a52b076 100644
--- a/actionpack/lib/action_controller/metal/http_authentication.rb
+++ b/actionpack/lib/action_controller/metal/http_authentication.rb
@@ -397,7 +397,7 @@ module ActionController
# RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]
module Token
TOKEN_KEY = 'token='
- TOKEN_REGEX = /^Token /
+ TOKEN_REGEX = /^(Token|Bearer) /
AUTHN_PAIR_DELIMITERS = /(?:,|;|\t+)/
extend self