How can I capture the Oauth 2 access token from Genesys UI page using Private Genesys Cloud Embeddable Framework

Hi team,

I want to caputre the access token whenever agents login every time and store it in data table. So by going through Genesys documentation, I found out that we can use Private Genesys Cloud Embeddable Framework in Genesys UI to capture the access token and we can perform storing the token in data table. So, I just found a small piece of code which captures the access token. But I need full code except data table store. kindly help me here. Thanks in advance.

window.PureCloud.User.getAuthToken(function (token) {
console.log("TOKEN: ", token);
})

Hello,

The Genesys Cloud Embeddable Framework is not an SDK or add-on available to a Genesys Cloud Web/Desktop UI.
The Genesys Cloud Embeddable Framework is a different client and has its own UI.

If your idea is to gather access tokens of users logging in Genesys Cloud Web/Desktop app, there is no SDK or methods for this.

Regards,

Hi Jerome,

Thanks for your response, Then how can I capture the Oauth 2 type access token without involving users sign-in into Genesys.

If you are referring to users using Genesys Cloud Web/Desktop app, it is not possible. Disclosing/propagating the token is not a good security practice.

@Magudeeswaran_N Please refer to the Authorization documentation for information on how your custom application can become authorized to make API requests. The Authorization Types section provides an overview of which grant types to use for various architectures. https://developer.genesys.cloud/authorization/platform-auth/

Please be aware that scraping auth tokens from other applications is considered abusive behavior. Every application is required to obtain its own authorization token. This is required by the OAuth 2.0 standard and Genesys Cloud's usage of it.

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