fix microsoft auth and ingestion for users without defined email

Signed-off-by: Jessica He <jhe@redhat.com>
This commit is contained in:
Jessica He
2024-08-22 15:21:31 -04:00
parent f54d3a5385
commit 3c2d690ce2
7 changed files with 77 additions and 5 deletions
+1
View File
@@ -533,6 +533,7 @@ export const providers: Readonly<{
resolvers: Readonly<{
emailMatchingUserEntityProfileEmail: () => SignInResolver_2<OAuthResult>;
emailLocalPartMatchingUserEntityName: () => SignInResolver_2<OAuthResult>;
userIdMatchingUserEntityAnnotation: () => SignInResolver_2<OAuthResult>;
emailMatchingUserEntityAnnotation: () => SignInResolver_2<OAuthResult>;
}>;
}>;
@@ -65,5 +65,7 @@ export const microsoft = createAuthProviderIntegration({
commonSignInResolvers.emailMatchingUserEntityProfileEmail(),
emailMatchingUserEntityAnnotation:
microsoftSignInResolvers.emailMatchingUserEntityAnnotation(),
userIdMatchingUserEntityAnnotation:
microsoftSignInResolvers.userIdMatchingUserEntityAnnotation(),
}),
});