Skip to content

Commit

Permalink
Merge pull request #2444 from Infisical/maidul-dhqduqyw
Browse files Browse the repository at this point in the history
add trip on identityId for identity logins
  • Loading branch information
maidul98 authored Sep 17, 2024
2 parents 24d121a + c577f51 commit 0df80c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)
schema: {
description: "Login with AWS Auth",
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),
iamRequestBody: z.string().describe(AWS_AUTH.LOGIN.iamRequestBody),
iamRequestHeaders: z.string().describe(AWS_AUTH.LOGIN.iamRequestHeaders)
Expand Down
2 changes: 1 addition & 1 deletion backend/src/server/routes/v1/identity-azure-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProvider
schema: {
description: "Login with Azure Auth",
body: z.object({
identityId: z.string().describe(AZURE_AUTH.LOGIN.identityId),
identityId: z.string().trim().describe(AZURE_AUTH.LOGIN.identityId),
jwt: z.string()
}),
response: {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/server/routes/v1/identity-gcp-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)
schema: {
description: "Login with GCP Auth",
body: z.object({
identityId: z.string().describe(GCP_AUTH.LOGIN.identityId),
identityId: z.string().trim().describe(GCP_AUTH.LOGIN.identityId).trim(),
jwt: z.string()
}),
response: {
Expand Down

0 comments on commit 0df80c5

Please sign in to comment.