Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use secret_key_base for Rails 6 compatibility #160

Merged
merged 1 commit into from
Jun 25, 2019
Merged

Use secret_key_base for Rails 6 compatibility #160

merged 1 commit into from
Jun 25, 2019

Conversation

aldesantis
Copy link
Member

@aldesantis aldesantis commented Jun 21, 2019

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.

Copy link

@twist900 twist900 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aldesantis thank you 👍

Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

secret_token has been removed in Rails 6 in favor of secret_key_base.

Because we don't want to break authentication for old apps, we use
secret_token when both configuration options are available and
secret_token is present.
@kennyadsl kennyadsl merged commit 11ac395 into solidusio:master Jun 25, 2019
@aldesantis aldesantis deleted the feature/rails-6 branch June 27, 2019 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants