Merge pull request #2444 from Infisical/maidul-dhqduqyw

add trip on identityId for identity logins
This commit is contained in:
Maidul Islam
2024-09-17 12:31:09 -04:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
@@ -22,7 +22,7 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)
schema: { schema: {
description: "Login with AWS Auth", description: "Login with AWS Auth",
body: z.object({ body: z.object({
identityId: z.string().describe(AWS_AUTH.LOGIN.identityId), identityId: z.string().trim().describe(AWS_AUTH.LOGIN.identityId),
iamHttpRequestMethod: z.string().default("POST").describe(AWS_AUTH.LOGIN.iamHttpRequestMethod), iamHttpRequestMethod: z.string().default("POST").describe(AWS_AUTH.LOGIN.iamHttpRequestMethod),
iamRequestBody: z.string().describe(AWS_AUTH.LOGIN.iamRequestBody), iamRequestBody: z.string().describe(AWS_AUTH.LOGIN.iamRequestBody),
iamRequestHeaders: z.string().describe(AWS_AUTH.LOGIN.iamRequestHeaders) iamRequestHeaders: z.string().describe(AWS_AUTH.LOGIN.iamRequestHeaders)
@@ -19,7 +19,7 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProvider
schema: { schema: {
description: "Login with Azure Auth", description: "Login with Azure Auth",
body: z.object({ body: z.object({
identityId: z.string().describe(AZURE_AUTH.LOGIN.identityId), identityId: z.string().trim().describe(AZURE_AUTH.LOGIN.identityId),
jwt: z.string() jwt: z.string()
}), }),
response: { response: {
@@ -19,7 +19,7 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)
schema: { schema: {
description: "Login with GCP Auth", description: "Login with GCP Auth",
body: z.object({ body: z.object({
identityId: z.string().describe(GCP_AUTH.LOGIN.identityId), identityId: z.string().trim().describe(GCP_AUTH.LOGIN.identityId).trim(),
jwt: z.string() jwt: z.string()
}), }),
response: { response: {