mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-27 14:15:50 +02:00
Merge branch 'auth-providers' into auth-providers-clients
This commit is contained in:
commit
d737fda8bc
2 changed files with 14 additions and 2 deletions
|
@ -6,6 +6,8 @@ import createHttpError from "http-errors";
|
||||||
import HttpCode from "@server/types/HttpCode";
|
import HttpCode from "@server/types/HttpCode";
|
||||||
|
|
||||||
export enum ActionsEnum {
|
export enum ActionsEnum {
|
||||||
|
listOrgs = "listOrgs",
|
||||||
|
listUserOrgs = "listUserOrgs",
|
||||||
createOrg = "createOrg",
|
createOrg = "createOrg",
|
||||||
// deleteOrg = "deleteOrg",
|
// deleteOrg = "deleteOrg",
|
||||||
getOrg = "getOrg",
|
getOrg = "getOrg",
|
||||||
|
@ -70,7 +72,17 @@ export enum ActionsEnum {
|
||||||
listClients = "listClients",
|
listClients = "listClients",
|
||||||
getClient = "getClient",
|
getClient = "getClient",
|
||||||
listOrgDomains = "listOrgDomains",
|
listOrgDomains = "listOrgDomains",
|
||||||
createNewt = "createNewt"
|
createNewt = "createNewt",
|
||||||
|
createIdp = "createIdp",
|
||||||
|
updateIdp = "updateIdp",
|
||||||
|
deleteIdp = "deleteIdp",
|
||||||
|
listIdps = "listIdps",
|
||||||
|
getIdp = "getIdp",
|
||||||
|
createIdpOrg = "createIdpOrg",
|
||||||
|
deleteIdpOrg = "deleteIdpOrg",
|
||||||
|
listIdpOrgs = "listIdpOrgs",
|
||||||
|
updateIdpOrg = "updateIdpOrg",
|
||||||
|
checkOrgId = "checkOrgId"
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function checkUserActionPermission(
|
export async function checkUserActionPermission(
|
||||||
|
|
|
@ -27,7 +27,7 @@ const listOrgsSchema = z.object({
|
||||||
|
|
||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "get",
|
method: "get",
|
||||||
path: "/user/:userId/orgs",
|
path: "/orgs",
|
||||||
description: "List all organizations in the system.",
|
description: "List all organizations in the system.",
|
||||||
tags: [OpenAPITags.Org],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue