mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
Merge pull request #4816 from Infisical/fix/identity-token-error-status
fix: status code when token auth is not found
This commit is contained in:
@@ -244,8 +244,8 @@ export const identityTokenAuthServiceFactory = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!identityMembershipOrg.identity.authMethods.includes(IdentityAuthMethod.TOKEN_AUTH)) {
|
if (!identityMembershipOrg.identity.authMethods.includes(IdentityAuthMethod.TOKEN_AUTH)) {
|
||||||
throw new BadRequestError({
|
throw new NotFoundError({
|
||||||
message: "The identity does not have Token Auth attached"
|
message: "Token Auth configuration not found for identity"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user