Skip to content

Commit d41b6b1

Browse files
authored
Merge branch 'alpha' into update-totp
2 parents 7e296d9 + a742656 commit d41b6b1

File tree

8 files changed

+44
-6
lines changed

8 files changed

+44
-6
lines changed

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [6.3.0-alpha.4](https://github.com/parse-community/parse-server/compare/6.3.0-alpha.3...6.3.0-alpha.4) (2023-07-04)
2+
3+
4+
### Bug Fixes
5+
6+
* Server does not start via CLI when `auth` option is set ([#8666](https://github.com/parse-community/parse-server/issues/8666)) ([4e2000b](https://github.com/parse-community/parse-server/commit/4e2000bc563324389584ace3c090a5c1a7796a64))
7+
18
# [6.3.0-alpha.3](https://github.com/parse-community/parse-server/compare/6.3.0-alpha.2...6.3.0-alpha.3) (2023-06-23)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "6.3.0-alpha.3",
3+
"version": "6.3.0-alpha.4",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {

spec/CLI.spec.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,25 @@ describe('execution', () => {
302302
done.fail(data.toString());
303303
});
304304
});
305+
306+
it('can start Parse Server with auth via CLI', done => {
307+
const env = { ...process.env };
308+
env.NODE_OPTIONS = '--dns-result-order=ipv4first';
309+
childProcess = spawn(
310+
binPath,
311+
['--databaseURI', databaseURI, './spec/configs/CLIConfigAuth.json'],
312+
{ env }
313+
);
314+
childProcess.stdout.on('data', data => {
315+
data = data.toString();
316+
console.log(data);
317+
if (data.includes('parse-server running on')) {
318+
done();
319+
}
320+
});
321+
childProcess.stderr.on('data', data => {
322+
data = data.toString();
323+
done.fail(data.toString());
324+
});
325+
});
305326
});

spec/configs/CLIConfigAuth.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"appName": "test",
3+
"appId": "test",
4+
"masterKey": "test",
5+
"logLevel": "error",
6+
"auth": {
7+
"facebook": {
8+
"appIds": "test"
9+
}
10+
}
11+
}

src/Options/Definitions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ module.exports.ParseServerOptions = {
103103
env: 'PARSE_SERVER_AUTH_PROVIDERS',
104104
help:
105105
'Configuration for your authentication providers, as stringified JSON. See http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication',
106-
action: parsers.arrayParser,
107106
},
108107
cacheAdapter: {
109108
env: 'PARSE_SERVER_CACHE_ADAPTER',

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export interface ParseServerOptions {
149149
allowCustomObjectId: ?boolean;
150150
/* Configuration for your authentication providers, as stringified JSON. See http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication
151151
:ENV: PARSE_SERVER_AUTH_PROVIDERS */
152-
auth: ?(AuthAdapter[]);
152+
auth: ?{ [string]: AuthAdapter };
153153
/* Max file size for uploads, defaults to 20mb
154154
:DEFAULT: 20mb */
155155
maxUploadSize: ?string;

0 commit comments

Comments
 (0)