service-client-api.accepted-web-content-origins
Section: interaction-workspace
Default Value: No default value
Valid Values: A comma-separated value list of URL or '*'
Changes Take Effect: After the next platform configuration refresh interval.
Introduced: 9.0.000.31
Specifies the list of granted origins and allowed APIs that are used in the web extension views. You can filter requested API with the following self-explanatory keywords:
- 'agent.get'
- 'agent.getStateList'
- 'agent.setState'
- 'agent.getState'
- 'interaction.getInteractions'
- 'interaction.getByInteractionId'
- 'interaction.getByBundleId'
- 'interaction.getByCaseId'
- 'interaction.setUserData'
- 'interaction.deleteUserData'
- 'system.closeToast'
- 'system.popupToast'
- 'system.updateToast'
- 'voice.dial'
- 'voice.startCallRecording'
- 'voice.stopCallRecording'
- 'voice.pauseCallRecording'
- 'voice.resumeCallRecording'
- 'email.create'.
For example, the value for of this option could now be: http://my-web-server0, http://my-web-server1 , http://my-web-server2 (agent.*, voice.dial), http://my-web-server3 (agent.*, interaction.*).
In this example, all requests are allowed for the http://my-web-server0 and http://my-web-server1 domains. For the http://my-web-server2 domain, only the following requests are allowed: 'agent.get', 'agent.getStateList', 'agent.setState', 'agent.getState', 'voice.dial'. For the http://my-web-server3 domain, only the following requests are allowed: - 'agent.get'
- 'agent.getStateList'
- 'agent.setState'
- 'agent.getState'
- 'interaction.getInteractions'
- 'interaction.getByInteractionId'
- 'interaction.getByBundleId'
- 'interaction.getByCaseId'
- 'interaction.setUserData'
- 'interaction.deleteUserData'.
In addition to filtering by origin, you can filter by API with a wildcard in parentheses after the allowed origin. This option cannot be overridden and must be set in the WS_Cluster application.
Auth Namespace
Contents
Methods
The Auth namespace includes the following methods:
getJwtToken
To use the auth.getJwtToken endpoint, you must explicitly define the full endpoint name in the service-client-api.accepted-web-content-origins option. For example: service-client-api.accepted-web-content-origins = https://genesyspureengage.github.io (*, auth.getJwtToken)
Signature | <static> getJwtToken(succeeded, failed) → {JSON object} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Get the JWT access token for the current session. If the token is already generated and still valid, it is returned; otherwise a new token is returned. | |||||||||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M5ZjkwLTM5ZDgtNDhiOC04N2U0LTE0NmQyYWQ3ZDI5OSIsInVzZXJfbmFtZSI6IlNJUF81MDAyIiwiZ2l2ZW5fbmFtZSI6IjUwMDJGIiwiZmFtaWx5X25hbWUiOiI1MDAyTCIsImVtYWlsIjoiU0lQXzUwMDIifX0.dtBeVDvR13_yBIMFasBLzu9oX9R8PxogdBGZGeh05wX-89aZVr32-6TscaqWS6CrAh9l9TuaXrReJxVzcJ-2MNlUGNVLE7aTsECz0ISxsbgZtQxENbAwiwgYPA8iMJV124aISKVbDQGAgao8SSXP097lgWMnd1S1QTd3_DiibAf6QU9NVXbWACt7oU2s9TO_MH6gn2dZ0Kymcpxj2U6jLNlB3hcd04qasCpt_NAzYR4U3v1IXVYYCGKjOz0p9eXd0aR3iNr9_999LbOHkmOFSGucfXGifZvM3YGF9LvljaCQ-gxkdv7NMOBNZy6wq4-ckG8IurEwYfS_Nzl8pM-iw"
} |
This page was last edited on June 30, 2020, at 18:54.
Comments or questions about this documentation? Contact us for support!