mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 12:26:38 +00:00
Update identity-azure-auth-service.ts
This commit is contained in:
@@ -70,7 +70,9 @@ export const identityAzureAuthServiceFactory = ({
|
|||||||
.map((servicePrincipalId) => servicePrincipalId.trim())
|
.map((servicePrincipalId) => servicePrincipalId.trim())
|
||||||
.some((servicePrincipalId) => servicePrincipalId === azureIdentity.oid);
|
.some((servicePrincipalId) => servicePrincipalId === azureIdentity.oid);
|
||||||
|
|
||||||
if (!isServicePrincipalAllowed) throw new UnauthorizedError({ message: "Service principal not allowed" });
|
if (!isServicePrincipalAllowed) {
|
||||||
|
throw new UnauthorizedError({ message: `Service principal '${azureIdentity.oid}' not allowed` });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const identityAccessToken = await identityAzureAuthDAL.transaction(async (tx) => {
|
const identityAccessToken = await identityAzureAuthDAL.transaction(async (tx) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user