What will be safe way to check of premium app configured url from valid source

Hi Team,
We are integrating our applications utilising the Genesys Premium App. The installation wizard is functioning properly. i have some concerns about the configured premium app url. i.e., how can we secure the premium app configured url that is opened only from Genesys PureCloud? instead of seperate tab or window?

Any ideas would be greatly appreciated.

Regards,
Pavan.K

Hello,

I am not sure I understand why you need to make sure it is not a separate tab or window.
This in fact should not matter - assuming you are referring to the Premium Application Wizard.

The Premium Wizard code example triggers an Authentication/Authorization flow (OAuth Implicit Grant flow) in order to get an access token for the current/logged in user, so the webapp can then invoke the Platform API.
The Premium Wizard example having then access to the customer's Genesys Cloud org can make queries to verify the product is enabled/present in this org. Otherwise, it displays an error message.

So for the wizard, it does not matter if it is run inside Genesys Desktop or outside (separate tab or window).

If you run the wizard on a separate tab or window, the "customer" would have to replace certain parameters in the url.
The url defined in the Premium Wizard integration (in Genesys Cloud configuration) leverages interpolated variables.
See: https://developer.genesys.cloud/platform/integrations/client-apps/#url-interpolation

When/if the webapp is opened from Genesys Desktop (embedded webapp), Genesys Desktop will replace gcTargetEnv and gcHostOrigin automatically with the values corresponding to the customer's Genesys Cloud org.

The Premium Wizard example leverages these values to determine the Genesys Cloud Core region of the customer (and to initialize the Platform API SDK properly so it points to the right region).

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.