-
Notifications
You must be signed in to change notification settings - Fork 393
Description
Is your feature request related to a problem? Please describe.
We're using the Webex JS SDK in Contact Center Desktop, and we're gradually moving over to let the webex js sdk fully manage tokens.
Just now we wish to use the JS SDK to handle the U2C lookup, based on email (email hash). We have this working, but we do need to include not only the email hash, but 'code=unused' as a parameter.
The problem we have is in this module: plugin-authorization-browser-first-party/src/authorization.js
Ref:
webex-js-sdk/packages/@webex/plugin-authorization-browser-first-party/src/authorization.js
Line 185 in b647f75
| initialize(...attrs) { |
Specifically this block:
// If no authorization code returned, nothing to do
if (!code) {
this.ready = true;
return ret;
}The code is optionally used later in the function. If the code is not present, then there is no org id and the function uses the email hash (which is the flow we want to use)
So as a workaround, we specify code=unused and this gets us past our issue.
Describe the solution you'd like
I think this initialize function should work with code or email hash
Actually, from our side it would be even better if we could specify either the email or the email has in the config object when we create the webexjssdk. As it stands we have to 'reload' our login (email entry) page with these new parameters encoded in the URL.
Describe alternatives you've considered
Specify the email in the webex init config objedt
Additional context
Reach out to me if need be - cmcgarry@cisco.com