Add revokeSessionOnPasswordReset option. Closes #1584#1597
Add revokeSessionOnPasswordReset option. Closes #1584#1597flovilmart merged 2 commits intoparse-community:masterfrom
Conversation
src/ParseServer.js
Outdated
| verbose = false, | ||
| revokeSessionOnPasswordReset = true, | ||
| }) { | ||
| if (typeof revokeSessionOnPasswordReset !== 'boolean') { |
There was a problem hiding this comment.
maybe move to the config validate ?
Current coverage is
|
|
@drew-gross updated the pull request. |
|
So after this PR' sessions won't be revoked on password reset? That seems like a security flow as an impersonator would be able to use and old session. |
|
Thats true, it's a marginal security risk. But, it's available in Parse.com, and there could be apps depending on this behaviour, so I don't think it's too bad, especially if your app has a session management page. Also sessions are revoked by default, you need to opt in to the less secure behaviour. |
|
Looks like it's The opposite as the default value is false. Is that intended? I'm fine with either, but that changes the default behavior and may impact existing deployments replacing the behavior by a slightly less secure onez |
|
Default looks like true from where I'm sitting: https://github.com/ParsePlatform/parse-server/pull/1597/files#diff-fd794f727e5f1cd4aa9c54051208b6c9R118 |
|
Was reading the wrong line. Sorry about that |
No description provided.