From fcd7ef9a386a27292f177279edf4b4395a2d4828 Mon Sep 17 00:00:00 2001 From: kridd Date: Mon, 6 Mar 2023 13:56:40 +0000 Subject: [PATCH] Add option to send account id. --- src/components/Instance.js | 14 ++++++-- src/lib/authWindow.js | 70 ++++++++++++++++++++++---------------- 2 files changed, 52 insertions(+), 32 deletions(-) diff --git a/src/components/Instance.js b/src/components/Instance.js index bd4f6c1..084efc0 100644 --- a/src/components/Instance.js +++ b/src/components/Instance.js @@ -28,7 +28,8 @@ export class Instance extends React.PureComponent { instanceState: undefined, configWizardSrc: undefined, authExternalId: undefined, - authUrlParams: '' + authUrlParams: '', + accountId: '' }; openWizard = (openInIframe, addCustomValidation = false) => { @@ -78,7 +79,7 @@ export class Instance extends React.PureComponent { onCreateAuth = () => { getAuthCreateUrl(this.props.id, this.state.authExternalId) .then(({body}) => { - openAuthWindow(`${body.data.popupUrl}&${this.state.authUrlParams}`); + openAuthWindow(`${body.data.popupUrl}&${this.state.authUrlParams}`, this.state.accountId); }) }; @@ -202,6 +203,15 @@ export class Instance extends React.PureComponent { shrink: true, }} /> +