Skip to content

Commit

Permalink
[Workplace Search] Make session_state optional (#94219)
Browse files Browse the repository at this point in the history
Some OAuth plugins don’t send this key so we make it optional to prevent server errors.
  • Loading branch information
scottybollinger authored Mar 10, 2021
1 parent 8d15c28 commit 89a4355
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}),
Expand Down

0 comments on commit 89a4355

Please sign in to comment.