diff options
author | phoet <phoetmail@googlemail.com> | 2015-02-26 16:01:26 +0100 |
---|---|---|
committer | phoet <phoetmail@googlemail.com> | 2015-06-01 11:41:26 +0200 |
commit | 4b4e890781c788aa63c531d7fec19797656adda0 (patch) | |
tree | 179fde2b7cecb1711e30e5ec6334168cbe544efc /actionpack/lib/action_controller/metal | |
parent | 90918b5f227b77b8b4fead67cfcff9339cd13031 (diff) | |
download | rails-4b4e890781c788aa63c531d7fec19797656adda0.tar.gz rails-4b4e890781c788aa63c531d7fec19797656adda0.tar.bz2 rails-4b4e890781c788aa63c531d7fec19797656adda0.zip |
allow `Bearer` as well as `Token`
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 2 |
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 |