[Workplace Search] Make session_state optional (#94219)

Some OAuth plugins don’t send this key so we make it optional to prevent server errors.
This commit is contained in:
Scotty Bollinger 2021-03-09 18:12:38 -06:00 committed by GitHub
parent 8d15c28899
commit 89a43555f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -858,7 +858,7 @@ export function registerOauthConnectorParamsRoute({
query: schema.object({
kibana_host: schema.string(),
code: schema.string(),
session_state: schema.string(),
session_state: schema.maybe(schema.string()),
state: schema.string(),
oauth_verifier: schema.maybe(schema.string()),
}),