Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

check verified

Thiago Araujo da Silva27791a5e3160
diff --git a/backend/src/services/oauth-client/oauth-client-service.ts b/backend/src/services/oauth-client/oauth-client-service.ts
index 49deb1519b..e7c6a25ea9 100644
--- a/backend/src/services/oauth-client/oauth-client-service.ts
+++ b/backend/src/services/oauth-client/oauth-client-service.ts
@@ -611,6 +611,13 @@ export const oauthClientServiceFactory = ({
});
}
+ if (!userAlias.isEmailVerified) {
+ throw new UnauthorizedError({
+ message:
+ "The user this token identifies has not verified their identity with your organization's OIDC SSO. They need to complete a browser sign-in once before an application can act on their behalf."
+ });
+ }
+
const user = await userDAL.findById(userAlias.userId);
if (!user) {
throw new UnauthorizedError({ message: "The user this token identifies no longer has an Infisical account." });