-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add revokeSessionOnPasswordReset option. Closes #1584 #1597
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,7 +161,7 @@ For the full list of available options, run `parse-server --help`. | |
|
||
* `appId` **(required)** - The application id to host with this server instance. You can use any arbitrary string. For migrated apps, this should match your hosted Parse app. | ||
* `masterKey` **(required)** - The master key to use for overriding ACL security. You can use any arbitrary string. Keep it secret! For migrated apps, this should match your hosted Parse app. | ||
* `databaseURI` **(required)** - The connection string for your database, i.e. `mongodb://user:[email protected]/dbname`. Be sure to [URL encode your password](https://app.zencoder.com/docs/guides/getting-started/special-characters-in-usernames-and-passwords) if your password has special charachters. | ||
* `databaseURI` **(required)** - The connection string for your database, i.e. `mongodb://user:[email protected]/dbname`. Be sure to [URL encode your password](https://app.zencoder.com/docs/guides/getting-started/special-characters-in-usernames-and-passwords) if your password has special charachters. | ||
* `port` - The default port is 1337, specify this parameter to use a different port. | ||
* `serverURL` - URL to your Parse Server (don't forget to specify http:// or https://). This URL will be used when making requests to Parse Server from Cloud Code. | ||
* `cloud` - The absolute path to your cloud code `main.js` file. | ||
|
@@ -188,6 +188,7 @@ The client keys used with Parse are no longer necessary with Parse Server. If yo | |
* `maxUploadSize` - Max file size for uploads. Defaults to 20 MB. | ||
* `loggerAdapter` - The default behavior/transport (File) can be changed by creating an adapter class (see [`LoggerAdapter.js`](https://github.com/ParsePlatform/parse-server/blob/master/src/Adapters/Logger/LoggerAdapter.js)). | ||
* `sessionLength` - The length of time in seconds that a session should be valid for. Defaults to 31536000 seconds (1 year). | ||
* `revokeSessionOnPasswordReset` - When a user changes their password, either through the reset password email or while logged in, all sessions are revoked if this is true. Set to false if you don't want to revoke sessions. | ||
|
||
##### Email verification and password reset | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
var Parse = require('parse/node').Parse; | ||
import cache from './cache'; | ||
import Auth from './Auth'; | ||
import Auth from './Auth'; | ||
|
||
var RestQuery = require('./RestQuery'); | ||
var RestWrite = require('./RestWrite'); | ||
|
@@ -96,7 +96,6 @@ function create(config, auth, className, restObject) { | |
// Usually, this is just updatedAt. | ||
function update(config, auth, className, objectId, restObject) { | ||
enforceRoleSecurity('update', className, auth); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why that removal? Checked after? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accident. Good catch. Somewhat worrying that it didn't cause any tests to fail though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uhm.. You're right :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But, the enforceRoleSecurity is a no-op when className != _Installation and action is 'update' |
||
|
||
return Promise.resolve().then(() => { | ||
if (triggers.getTrigger(className, triggers.Types.beforeSave, config.applicationId) || | ||
triggers.getTrigger(className, triggers.Types.afterSave, config.applicationId) || | ||
|
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.
👍 nice touch you thought about it :)