mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 21:28:18 +00:00
misc: addressed eslint issue regarding configurationType
This commit is contained in:
@@ -191,6 +191,7 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
|
|||||||
.join(", ");
|
.join(", ");
|
||||||
}),
|
}),
|
||||||
discoveryURL: z.string().trim().optional().default(""),
|
discoveryURL: z.string().trim().optional().default(""),
|
||||||
|
configurationType: z.nativeEnum(OIDCConfigurationType),
|
||||||
issuer: z.string().trim().optional().default(""),
|
issuer: z.string().trim().optional().default(""),
|
||||||
authorizationEndpoint: z.string().trim().optional().default(""),
|
authorizationEndpoint: z.string().trim().optional().default(""),
|
||||||
jwksUri: z.string().trim().optional().default(""),
|
jwksUri: z.string().trim().optional().default(""),
|
||||||
@@ -201,7 +202,7 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
|
|||||||
isActive: z.boolean()
|
isActive: z.boolean()
|
||||||
})
|
})
|
||||||
.partial()
|
.partial()
|
||||||
.merge(z.object({ orgSlug: z.string(), configurationType: z.nativeEnum(OIDCConfigurationType) })),
|
.merge(z.object({ orgSlug: z.string() })),
|
||||||
response: {
|
response: {
|
||||||
200: OidcConfigsSchema.pick({
|
200: OidcConfigsSchema.pick({
|
||||||
id: true,
|
id: true,
|
||||||
|
|||||||
@@ -45,12 +45,12 @@ export type TUpdateOidcCfgDTO = Partial<{
|
|||||||
allowedEmailDomains: string;
|
allowedEmailDomains: string;
|
||||||
discoveryURL: string;
|
discoveryURL: string;
|
||||||
jwksUri: string;
|
jwksUri: string;
|
||||||
|
configurationType: OIDCConfigurationType;
|
||||||
tokenEndpoint: string;
|
tokenEndpoint: string;
|
||||||
userinfoEndpoint: string;
|
userinfoEndpoint: string;
|
||||||
clientId: string;
|
clientId: string;
|
||||||
clientSecret: string;
|
clientSecret: string;
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
orgSlug: string;
|
orgSlug: string;
|
||||||
}> & {
|
}> &
|
||||||
configurationType: OIDCConfigurationType;
|
TGenericPermission;
|
||||||
} & TGenericPermission;
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const useUpdateOIDCConfig = () => {
|
|||||||
clientId?: string;
|
clientId?: string;
|
||||||
clientSecret?: string;
|
clientSecret?: string;
|
||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
configurationType: string;
|
configurationType?: string;
|
||||||
orgSlug: string;
|
orgSlug: string;
|
||||||
}) => {
|
}) => {
|
||||||
const { data } = await apiRequest.patch("/api/v1/sso/oidc/config", {
|
const { data } = await apiRequest.patch("/api/v1/sso/oidc/config", {
|
||||||
|
|||||||
@@ -25,11 +25,8 @@ enum ConfigurationType {
|
|||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
popUp: UsePopUpState<["addOIDC"]>;
|
popUp: UsePopUpState<["addOIDC"]>;
|
||||||
handlePopUpClose: (popUpName: keyof UsePopUpState<["addOIDC", "loadViaDiscoveryURL"]>) => void;
|
handlePopUpClose: (popUpName: keyof UsePopUpState<["addOIDC"]>) => void;
|
||||||
handlePopUpToggle: (
|
handlePopUpToggle: (popUpName: keyof UsePopUpState<["addOIDC"]>, state?: boolean) => void;
|
||||||
popUpName: keyof UsePopUpState<["addOIDC", "loadViaDiscoveryURL"]>,
|
|
||||||
state?: boolean
|
|
||||||
) => void;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user