-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Set longer CSRF token duration (one week) #4741
Conversation
Default is one hour (3600), also this entry makes the setting a bit more discoverable http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
Codecov Report
@@ Coverage Diff @@
## master #4741 +/- ##
==========================================
+ Coverage 72.25% 72.25% +<.01%
==========================================
Files 205 205
Lines 15349 15350 +1
Branches 1182 1182
==========================================
+ Hits 11090 11091 +1
Misses 4256 4256
Partials 3 3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but we should have a better way of surfacing that the token expired. Ideally we'd redirect the user to the login page if the token expired, instead of just showing up an error message saying Unexpected error
in the UI.
Right now when I see the Unexpected error
message in the UI I know it's an expired token, because it happens frequently. I'm worried that a year from now we'll see the message and spend hours troubleshooting until we remember that it's caused by an expired token.
I think SQL Lab surfaces the error properly and the explore view does give |
Default is one hour (3600), also this entry makes the setting a bit more discoverable http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
Default is one hour (3600), also this entry makes the setting a bit more discoverable http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
Default is one hour (3600), also this entry makes the setting a bit more discoverable http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
Default is one hour (3600), also this entry makes the setting a bit more discoverable http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
Default is one hour (3600), also this entry makes the setting a bit more
discoverable
http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
closes #4739