Many thanks!
I thought that it was not necessary to obtain the token and that it was possible to use the cookie (as it is in the samples).
The purpose of my development is to receive CTI events from an agent from a javascript library embedded in a Web CRM using the Customer Interaction API (
https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/customer_interaction/index.gsp).
The agent must continue working normally in the workspace as well.
However, I continue with 3 critical doubts:
1- This process authenticates my application with Oceana, but ... how do I authenticate the agent with the Customer Interaction API (JavaScript)?
seeing this:
https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/customer_interaction/guide/tutorial_auth.gsp
Can I do the same but replace the 'authToken' (readed from SSOCookie) with token got by the Authorization Service (
https://<FQDN:9443>/services/AuthorizationService/token)?
....
var SSOCookie = $cookies.get('
UACCookieSession');
var authToken = { header: 'Authorization', value: SSOCookie };
var client = new AvayaCustomerServices(config);
var clientSession = client.createClientSession();
clientSession.setToken(authToken);
var agent = clientSession.createAgent();
var work = clientSession.createWork();
2- Can Breeze send CTI events from the agent to the workspace and my integration at the same time?
With the Customer Interaction sample, when I activate the agent the workspace is disconnected (a DELETE message is sent via broadcast by TAKEOVER cause). We have tested this using the contents of the UACCookieSession as a hardcoded token (to be able to test the sample).
3- I do not see in the document the signature with which I must sign the JWT token. What should I use so that Oceana is able to understand the token and extract the clientid?
Thank you very much in advance,
Best regards,