Closed
Bug 920954
Opened 12 years ago
Closed 12 years ago
Add CSRF token support
Categories
(Webmaker Graveyard :: Profile, defect)
Webmaker Graveyard
Profile
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jon, Assigned: michiel)
References
Details
(Whiteboard: mozfest)
Attachments
(2 files)
I've disabled CSRF tokens temporarily so that we can continue to iterate on the frontend and backend, but we'll need to bring em back before we ship to prod.
Comment 1•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/webmaker-profile-service
https://github.com/mozilla/webmaker-profile-service/commit/5a440587535092213ebdb8f037fcaddfa23a7053
Bug 920954 - Disable CSRF token checking
Updated•12 years ago
|
Whiteboard: mozfest
Comment 2•12 years ago
|
||
I gave this a shot, and in my opinion, profile and profile service should be one app, otherwise we're going to have to figure out cross-domain csrf.
https://github.com/cadecairos/webmaker-profile-service/tree/bug920954
https://github.com/cadecairos/webmaker-profile/tree/bug920954
| Reporter | ||
Comment 3•12 years ago
|
||
I'll give myself 4 hours to figure out a way to do cross-domain csrf; if I can't then we can just merge the apps.
Assignee: cade → jon
| Reporter | ||
Updated•12 years ago
|
I can't get a CSRF token to show up. If I add the server.use(express.csrf()) code after the cookie/body parsing, with a test route server.get('/getCSRF', function(req, res, next) { console.log(req.session); }); then there is no _csrf token, nor does req.csrfToken() resolve to anything valid. The session has a _csrfSecret attached to it, but this is not something we can use.
part 1 or 2 - other fix in https://github.com/mozilla/webmaker-profile-service/pull/24
Attachment #822308 -
Flags: review?(cade)
part 2 of 2, other part is in https://github.com/mozilla/webmaker-profile/pull/205
Attachment #822309 -
Flags: review?(cade)
Comment 7•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/webmaker-profile
https://github.com/mozilla/webmaker-profile/commit/fcfb5623aa27b3e4fcf31a20859ac6e7cd96911d
Merge pull request #205 from Pomax/bug920954
Bug920954
Comment 8•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/webmaker-profile-service
https://github.com/mozilla/webmaker-profile-service/commit/681062676438672188faf2858e622e26ec95e6b6
Merge pull request #24 from Pomax/bug920954
CSRF fixes
Updated•12 years ago
|
Attachment #822308 -
Flags: review?(cade) → review+
Updated•12 years ago
|
Attachment #822309 -
Flags: review?(cade) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•