From e3d8b3899845b565e91259217e96f222d116b70c Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Tue, 9 Apr 2024 14:18:16 +0200 Subject: [PATCH] fix: Add AuthIdentityMicrosoft (#9612) --- .../graphql/public/typeDefs/_legacy.graphql | 16 ++++++++++++++++ packages/server/graphql/rootTypes.ts | 2 ++ 2 files changed, 18 insertions(+) diff --git a/packages/server/graphql/public/typeDefs/_legacy.graphql b/packages/server/graphql/public/typeDefs/_legacy.graphql index e0e09d93056..1f65bf27ca9 100644 --- a/packages/server/graphql/public/typeDefs/_legacy.graphql +++ b/packages/server/graphql/public/typeDefs/_legacy.graphql @@ -249,6 +249,22 @@ type AuthIdentityGoogle implements AuthIdentity { id: ID! } +""" +An authentication strategy using Microsoft +""" +type AuthIdentityMicrosoft implements AuthIdentity { + """ + true if the email address using this strategy is verified, else false + """ + isEmailVerified: Boolean! + type: AuthIdentityTypeEnum! + + """ + The Microsoft ID for this strategy + """ + id: ID! +} + """ An authentication strategy to log in to Parabol """ diff --git a/packages/server/graphql/rootTypes.ts b/packages/server/graphql/rootTypes.ts index e0bfb77c349..823f80ef4a6 100644 --- a/packages/server/graphql/rootTypes.ts +++ b/packages/server/graphql/rootTypes.ts @@ -2,6 +2,7 @@ import ActionMeetingMember from './types/ActionMeetingMember' import ActionMeetingSettings from './types/ActionMeetingSettings' import AgendaItemsPhase from './types/AgendaItemsPhase' import AuthIdentityGoogle from './types/AuthIdentityGoogle' +import AuthIdentityMicrosoft from './types/AuthIdentityMicrosoft' import AuthIdentityLocal from './types/AuthIdentityLocal' import AzureDevOpsWorkItem from './types/AzureDevOpsWorkItem' import CheckInPhase from './types/CheckInPhase' @@ -40,6 +41,7 @@ const rootTypes = [ IntegrationProviderOAuth2, IntegrationProviderWebhook, AuthIdentityGoogle, + AuthIdentityMicrosoft, AuthIdentityLocal, CheckInPhase, ReflectPhase,