From 74b604608aca8ef15db8c99f09c786ece51c63f1 Mon Sep 17 00:00:00 2001 From: Scotty Bollinger Date: Wed, 17 Mar 2021 17:22:59 -0500 Subject: [PATCH] [Workplace Search] Add conditional props for Gmail (#94855) THis PR adds conditional query params that gmail sends when doing an oauth redirect. --- .../server/routes/workplace_search/sources.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugins/enterprise_search/server/routes/workplace_search/sources.ts b/x-pack/plugins/enterprise_search/server/routes/workplace_search/sources.ts index b56c5880dba43..6638aa82b32ad 100644 --- a/x-pack/plugins/enterprise_search/server/routes/workplace_search/sources.ts +++ b/x-pack/plugins/enterprise_search/server/routes/workplace_search/sources.ts @@ -859,6 +859,10 @@ export function registerOauthConnectorParamsRoute({ kibana_host: schema.string(), code: schema.maybe(schema.string()), session_state: schema.maybe(schema.string()), + authuser: schema.maybe(schema.string()), + prompt: schema.maybe(schema.string()), + hd: schema.maybe(schema.string()), + scope: schema.maybe(schema.string()), state: schema.string(), oauth_token: schema.maybe(schema.string()), oauth_verifier: schema.maybe(schema.string()),