solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
53 stars 128 forks source link

Use secret_key_base for Rails 6 compatibility #160

Closed aldesantis closed 5 years ago

aldesantis commented 5 years ago

secret_token is not available in Rails 6 anymore, it was removed in favor of secret_key_base.

With this PR, we adopt secret_key_base as the pepper when it's available, ensuring compatibility with Rails 6. secret_token is still used when available, in order to avoid breaking authentication for existing apps.