webex / webex-js-sdk

JavaScript SDK for Webex
https://webex.github.io/webex-js-sdk/
Other
167 stars 334 forks source link

Full Proxy Support #3639

Open Tiuipuv opened 3 weeks ago

Tiuipuv commented 3 weeks ago

Is your feature request related to a problem? Please describe. Currently, certain corporate environments cannot start or use the webex sdk due to proxy requirements. The current version of the SDK supports setting a proxy for the mercury plugin, but does not include support for generic https fetch requests. This feature would allow these restrictions to be lifted, as the user would be able to specify the proxy in the setup of the sdk.

Describe the solution you'd like Developed in PR 3624, The user would be able to specify a proxy string on initialization, as shown below:

webex = WebexSdk.init({
  credentials: {
    supertoken: superToken
  },
  config: {
    credentials: {
      client_id,
      client_secret
    },
    proxy: 'http://proxy.company.com'
  }
});

Describe alternatives you've considered No overrides or alternatives are available, as the request library under the hood does not have any other exposure points for configuration.

Additional context Add any other context or screenshots about the feature request here.

Tiuipuv commented 3 weeks ago

Can the following branch be linked for issue resolution by a contributor/admin of the sdk?

https://github.com/webex/webex-js-sdk/pull/3624