You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'This string should match the appId in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same appId.',
"Number in milliseconds. When clients provide the sessionToken to the LiveQuery server, the LiveQuery server will try to fetch its ParseUser's objectId from parse server and store it in the cache. The value defines the duration of the cache. Check the following Security section and our protocol specification for details, defaults to 5 * 1000 ms (5 seconds).",
483
483
action: parsers.numberParser('cacheTimeout'),
484
484
},
485
485
keyPairs: {
486
-
env: 'PARSE_LIVE_QUERY_SERVER_KEY_PAIRS',
486
+
env: 'PARSE_SERVER_LIVE_QUERY_SERVER_KEY_PAIRS',
487
487
help:
488
488
'A JSON object that serves as a whitelist of keys. It is used for validating clients when they try to connect to the LiveQuery server. Check the following Security section and our protocol specification for details.',
489
489
action: parsers.objectParser,
490
490
},
491
491
logLevel: {
492
-
env: 'PARSE_LIVE_QUERY_SERVER_LOG_LEVEL',
492
+
env: 'PARSE_SERVER_LIVE_QUERY_SERVER_LOG_LEVEL',
493
493
help:
494
494
'This string defines the log level of the LiveQuery server. We support VERBOSE, INFO, ERROR, NONE, defaults to INFO.',
495
495
},
496
496
masterKey: {
497
-
env: 'PARSE_LIVE_QUERY_SERVER_MASTER_KEY',
497
+
env: 'PARSE_SERVER_LIVE_QUERY_SERVER_MASTER_KEY',
498
498
help:
499
499
'This string should match the masterKey in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same masterKey.',
500
500
},
501
501
port: {
502
-
env: 'PARSE_LIVE_QUERY_SERVER_PORT',
502
+
env: 'PARSE_SERVER_LIVE_QUERY_SERVER_PORT',
503
503
help: 'The port to run the LiveQuery server, defaults to 1337.',
'This string should match the serverURL in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same serverURL.',
'Number of milliseconds between ping/pong frames. The WebSocket server sends ping/pong frames to the clients to keep the WebSocket alive. This value defines the interval of the ping/pong frame from the server to clients, defaults to 10 * 1000 ms (10 s).',
'An array of paths for which the feature should be enabled. The mount path must not be included, for example instead of `/parse/functions/myFunction` specifiy `functions/myFunction`. The entries are interpreted as regular expression, for example `functions/.*` matches all functions, `jobs/.*` matches all jobs, `classes/.*` matches all classes, `.*` matches all paths.',
543
543
action: parsers.arrayParser,
544
544
default: [],
545
545
},
546
546
ttl: {
547
-
env: 'PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_TTL',
547
+
env: 'PARSE_SERVER_IDEMPOTENCY_TTL',
548
548
help:
549
549
'The duration in seconds after which a request record is discarded from the database, defaults to 300s.',
550
550
action: parsers.numberParser('ttl'),
551
551
default: 300,
552
552
},
553
553
};
554
+
module.exports.AccountLockoutOptions={
555
+
duration: {
556
+
env: 'PARSE_SERVER_ACCOUNT_LOCKOUT_DURATION',
557
+
help:
558
+
'number of minutes that a locked-out account remains locked out before automatically becoming unlocked.',
559
+
action: parsers.numberParser('duration'),
560
+
},
561
+
threshold: {
562
+
env: 'PARSE_SERVER_ACCOUNT_LOCKOUT_THRESHOLD',
563
+
help: 'number of failed sign-in attempts that will cause a user account to be locked',
* @property {String[]} allowHeaders Add headers to Access-Control-Allow-Headers
@@ -23,7 +23,7 @@
23
23
* @property {Boolean} directAccess Replace HTTP Interface when using JS SDK in current node runtime, defaults to false. Caution, this is an experimental feature that may not be appropriate for production.
24
24
* @property {String} dotNetKey Key for Unity and .Net SDK
25
25
* @property {Adapter<MailAdapter>} emailAdapter Adapter module for email sending
26
-
* @property {Boolean} emailVerifyTokenReuseIfValid an existing password reset token should be reused when a password reset is requested
26
+
* @property {Boolean} emailVerifyTokenReuseIfValid an existing password reset token should be reused when resend verification is requested
* @property {Boolean} enableExpressErrorHandler Enables the default express error handler for all errors
@@ -53,7 +53,7 @@
53
53
* @property {String} mountPath Mount path for the server, defaults to /parse
54
54
* @property {Boolean} mountPlayground Mounts the GraphQL Playground - never use this option in production
55
55
* @property {Number} objectIdSize Sets the number of characters in generated object id's, default 10
56
-
* @property {Any} passwordPolicy Password policy for enforcing password related rules
56
+
* @property {PasswordPolicyOptions} passwordPolicy Password policy for enforcing password related rules
57
57
* @property {String} playgroundPath Mount path for the GraphQL Playground, defaults to /playground
58
58
* @property {Number} port The port to run the ParseServer, defaults to 1337.
59
59
* @property {Boolean} preserveFileName Enable (or disable) the addition of a unique hash to the file names
@@ -120,3 +120,20 @@
120
120
* @property {String[]} paths An array of paths for which the feature should be enabled. The mount path must not be included, for example instead of `/parse/functions/myFunction` specifiy `functions/myFunction`. The entries are interpreted as regular expression, for example `functions/.*` matches all functions, `jobs/.*` matches all jobs, `classes/.*` matches all classes, `.*` matches all paths.
121
121
* @property {Number} ttl The duration in seconds after which a request record is discarded from the database, defaults to 300s.
122
122
*/
123
+
124
+
/**
125
+
* @interface AccountLockoutOptions
126
+
* @property {Number} duration number of minutes that a locked-out account remains locked out before automatically becoming unlocked.
127
+
* @property {Number} threshold number of failed sign-in attempts that will cause a user account to be locked
128
+
*/
129
+
130
+
/**
131
+
* @interface PasswordPolicyOptions
132
+
* @property {Boolean} doNotAllowUsername disallow username in passwords
133
+
* @property {Number} maxPasswordAge days for password expiry
134
+
* @property {Number} maxPasswordHistory setting to prevent reuse of previous n passwords
135
+
* @property {Boolean} resetTokenReuseIfValid resend token if it's still valid
136
+
* @property {Number} resetTokenValidityDuration time for token to expire
137
+
* @property {Function} validatorCallback a callback function to be invoked to validate the password
138
+
* @property {String} validatorPattern a RegExp object or a regex string representing the pattern to enforce
0 commit comments