mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 13:26:02 +00:00
Add API Key auth mode support for v1/workspace
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
|||||||
} from "../../middleware";
|
} from "../../middleware";
|
||||||
import {
|
import {
|
||||||
ADMIN,
|
ADMIN,
|
||||||
|
AUTH_MODE_API_KEY,
|
||||||
AUTH_MODE_JWT,
|
AUTH_MODE_JWT,
|
||||||
MEMBER,
|
MEMBER,
|
||||||
} from "../../variables";
|
} from "../../variables";
|
||||||
@@ -44,7 +45,7 @@ router.get(
|
|||||||
router.get(
|
router.get(
|
||||||
"/",
|
"/",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AUTH_MODE_JWT],
|
acceptedAuthModes: [AUTH_MODE_JWT, AUTH_MODE_API_KEY],
|
||||||
}),
|
}),
|
||||||
workspaceController.getWorkspaces
|
workspaceController.getWorkspaces
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user