[POC] Support to bundle_oauth and bundle_integration_key #272
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Install App
In order to utilise the external OAuth Client created here, changes need to be made in ZAM.
The flow we are striving to achieve is as follows

CHANGES TO ZAS
Since we are dependent on an OAuthClient generated outside of ZAM, changes need to be made to the app manifest.json file to enable the app to make use of it. The plan is to create two new custom hidden fields like the following
Features
bundle_oauth
** This field will store the connection_uuid like the pre-existing
oauth
typebundle_integration_key
** This field will store the integration key which is specified during the ZIS-Bundle upload (removing the need to rely on procedurally generated versions from ZAM)
For the most part, changes to this flow will remain the unchanged:

We will still query Zendesk App Market for the installation details and check if it is a ZIS App (here). Logic to identify if it utilizes ZIS-Connections needs to be altered to cater for the new connection_uuid and integration_key fields.
If those fields exist, we can go ahead and create the ZIS-Connections url without stitching up the integration key (i.e. app_market_XXX)
DONE WHEN
bundle_oauth
andbundle_integration_key