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

Adding note about CSRF protection to README. #448

Merged
merged 1 commit into from
Jul 17, 2016

Conversation

lukeasrodgers
Copy link
Contributor

Open to other wording, suggestions on basic ways of addressing this issue.

Fixes #310


== CSRF Protection

Because Authlogic introduces its own methods for storing user sessions, the CSRF (Cross Site Request Forgery) protection that is built into Rails will not work out of the box.
Copy link
Contributor

Choose a reason for hiding this comment

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

@lukeasrodgers wondering if we should emphasize here that it's a user-defined session (eg def current_user_session) so there's no way for Authlogic to know what to reset?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about adding this sentence to the above: "No generally applicable mitigation by the authlogic library is possible, because the instance variable you use to store a reference to the user session in def current_user_session will not be known to authlogic."
Open to other suggestions.

Copy link
Contributor

Choose a reason for hiding this comment

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

@lukeasrodgers
Copy link
Contributor Author

Was going through my old, stale PRs and noticed this one -- I updated the docs as suggested, and fixed the merge conflict (was due to README.rdoc vs README.md).

@jaredbeck
Copy link
Collaborator

I'm not familiar with this particular CSRF issue, but given that Tieg already reviewed this I'm going to merge it. Thanks Luke, sorry for the long delay.

@jaredbeck jaredbeck merged commit 770f226 into binarylogic:master Jul 17, 2016
@lukeasrodgers
Copy link
Contributor Author

@jaredbeck no problem, cheers.

@lukeasrodgers lukeasrodgers deleted the csrf-protection-docs branch July 17, 2016 00:13
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.

Authlogic disables CSRF protection by default
3 participants