From 00b1f96e9cc79c4c3d9bab9e03e9b0191ac5909c Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Fri, 15 Mar 2024 11:09:12 +0800 Subject: [PATCH] fix(core): the koa response status guard missing 422 in sso integration API --- packages/core/src/routes/interaction/single-sign-on.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/routes/interaction/single-sign-on.ts b/packages/core/src/routes/interaction/single-sign-on.ts index b0db3d1f7b2..99faf43e1db 100644 --- a/packages/core/src/routes/interaction/single-sign-on.ts +++ b/packages/core/src/routes/interaction/single-sign-on.ts @@ -79,7 +79,7 @@ export default function singleSignOnRoutes( connectorId: z.string(), }), body: z.record(z.unknown()), - status: [200, 404], + status: [200, 404, 422], response: z.object({ redirectTo: z.string(), }),