From a1637fa1e25b60a88f7cfe50aac8953f50d55761 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Jul 2021 10:55:16 +0200 Subject: Specify if we want to fallback to the server token --- shared/extra-utils/server/plugins-command.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shared/extra-utils/server/plugins-command.ts') diff --git a/shared/extra-utils/server/plugins-command.ts b/shared/extra-utils/server/plugins-command.ts index f06e58a22..ff49d58c4 100644 --- a/shared/extra-utils/server/plugins-command.ts +++ b/shared/extra-utils/server/plugins-command.ts @@ -45,6 +45,7 @@ export class PluginsCommand extends AbstractCommand { pluginType, uninstalled }, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -75,6 +76,7 @@ export class PluginsCommand extends AbstractCommand { path, query, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -88,6 +90,7 @@ export class PluginsCommand extends AbstractCommand { ...options, path, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -104,6 +107,7 @@ export class PluginsCommand extends AbstractCommand { path, fields: { settings }, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 }) } @@ -117,6 +121,7 @@ export class PluginsCommand extends AbstractCommand { ...options, path, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -131,6 +136,7 @@ export class PluginsCommand extends AbstractCommand { ...options, path, + implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -145,6 +151,7 @@ export class PluginsCommand extends AbstractCommand { ...options, path, + implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -161,6 +168,7 @@ export class PluginsCommand extends AbstractCommand { path: apiPath, fields: { npmName, path }, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -177,6 +185,7 @@ export class PluginsCommand extends AbstractCommand { path: apiPath, fields: { npmName, path }, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -192,6 +201,7 @@ export class PluginsCommand extends AbstractCommand { path: apiPath, fields: { npmName }, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 }) } @@ -203,6 +213,7 @@ export class PluginsCommand extends AbstractCommand { ...options, path, + implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -222,6 +233,7 @@ export class PluginsCommand extends AbstractCommand { path, query, + implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200, redirects: 0 }) -- cgit v1.2.3