-
Notifications
You must be signed in to change notification settings - Fork 400
Update LoginRequired and secure local cookies #345
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
Update LoginRequired and secure local cookies #345
Conversation
#brokeeverything. I have to run but I'll fix the tests shortly. |
So updating the config seems to have no impact on the values that I see pulled out of the config when the tests run. I'm out of ideas for today so I'll try again in the morning. |
Things are passing now! Ready for review. |
I wonder if we should consider running dev under ssl since there's so many things that don't work without it? |
lgtm r+wc |
SSL would be nice in dev, I guess that'd likely mean adding docker for this project. That isn't a huge deal but being able to just use node is kind of nice. We'd be able to run an addons-server a bit easier that way though. |
This updates how the
LoginRequired
component works so that it integrates with Helmet a bit better.It also updates it to not use secure cookies in development since that was breaking login persisting.
This doesn't prevent API requests from happening on the server when the user it redirected to login but I will leave that bug open for now. If it needs authentication then it will fail, if it doesn't then the data is public anyway. It's just a performance issue.