mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 02:26:40 +00:00
feat: removed non rfc related groups in user scim resource
This commit is contained in:
@@ -305,13 +305,7 @@ export const registerScimRouter = async (server: FastifyZodProvider) => {
|
|||||||
})
|
})
|
||||||
),
|
),
|
||||||
displayName: z.string().trim(),
|
displayName: z.string().trim(),
|
||||||
active: z.boolean(),
|
active: z.boolean()
|
||||||
groups: z.array(
|
|
||||||
z.object({
|
|
||||||
value: z.string().trim(),
|
|
||||||
display: z.string().trim()
|
|
||||||
})
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export const buildScimUser = ({
|
|||||||
email,
|
email,
|
||||||
firstName,
|
firstName,
|
||||||
lastName,
|
lastName,
|
||||||
groups = [],
|
|
||||||
active,
|
active,
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt
|
updatedAt
|
||||||
@@ -54,10 +53,6 @@ export const buildScimUser = ({
|
|||||||
email?: string | null;
|
email?: string | null;
|
||||||
firstName: string | null | undefined;
|
firstName: string | null | undefined;
|
||||||
lastName: string | null | undefined;
|
lastName: string | null | undefined;
|
||||||
groups?: {
|
|
||||||
value: string;
|
|
||||||
display: string;
|
|
||||||
}[];
|
|
||||||
active: boolean;
|
active: boolean;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
@@ -82,7 +77,6 @@ export const buildScimUser = ({
|
|||||||
]
|
]
|
||||||
: [],
|
: [],
|
||||||
active,
|
active,
|
||||||
groups,
|
|
||||||
meta: {
|
meta: {
|
||||||
resourceType: "User",
|
resourceType: "User",
|
||||||
created: createdAt,
|
created: createdAt,
|
||||||
|
|||||||
@@ -135,10 +135,6 @@ export type TScimUser = {
|
|||||||
type: string;
|
type: string;
|
||||||
}[];
|
}[];
|
||||||
active: boolean;
|
active: boolean;
|
||||||
groups: {
|
|
||||||
value: string;
|
|
||||||
display: string;
|
|
||||||
}[];
|
|
||||||
meta: {
|
meta: {
|
||||||
resourceType: string;
|
resourceType: string;
|
||||||
created: Date;
|
created: Date;
|
||||||
|
|||||||
Reference in New Issue
Block a user