1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Scott Blum dabb587cbb
Accept and default to base64_urlsafe CSRF tokens (#18496)
Base64 strict-encoded CSRF tokens are not inherently websafe, which makes
them difficult to deal with. For example, the common practice of sending
the CSRF token to a browser in a client-readable cookie does not work properly
out of the box: the value has to be url-encoded and decoded to survive transport.

Now, we generate Base64 urlsafe-encoded CSRF tokens, which are inherently safe
to transport.  Validation accepts both urlsafe tokens, and strict-encoded tokens
for backwards compatibility.
2020-03-28 21:07:09 -07:00
..
abstract Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
assertions Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller Accept and default to base64_urlsafe CSRF tokens (#18496) 2020-03-28 21:07:09 -07:00
dispatch Support rolling deploys for cookie serialization/encryption changes (#37628) 2020-03-18 12:03:00 -07:00
fixtures Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
journey Memoize regex when checking missing route keys 2020-01-08 08:36:29 +01:00
lib Document view components support (#38656) 2020-03-13 23:52:49 +01:00
routing Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
abstract_unit.rb Remove ENV['TRAVIS'] 2020-01-02 09:23:06 +09:00