HttpOnly cookies are not visible to browser side javascript. Work around using oidc-token-service and username/password config :(
This commit is contained in:
68
README.md
68
README.md
@@ -1,4 +1,3 @@
|
||||
|
||||
# Example Vue Applications
|
||||
|
||||
This project provides some example Vue applications that are designed to run within the [Channel Automation: Adaptive Framework](https://em-docs.verint.com/15_3/em-integration/Content/AdaptiveFramework/Adaptive_Framework_Components.htm?Highlight=Adaptive%20Framework).
|
||||
@@ -11,23 +10,56 @@ Provides debug infomation on cookies, [authentication](https://em-docs.verint.co
|
||||
|
||||
### /telephonyContext
|
||||
|
||||
Displays Telephony Context Information. This route has been designed to be used withing a Call Interaction.
|
||||
Displays Telephony Context Information. This route has been designed to be used withing a Call Interaction.
|
||||
|
||||
#### Parameters
|
||||
|
||||
Parameters prefixed with 'tps:' will fetch values from the Tenant Properties Service.
|
||||
|
||||
| name | description |
|
||||
| --- | --- |
|
||||
| ani | Automatic Number Identification |
|
||||
| dnis | Dialed Number Identification Service |
|
||||
| queue | Queue the Call was in before it was delivered to the agent |
|
||||
|direction | INBOUND, OUTBOUND etc. |
|
||||
| channel | AmazonConnect etc. |
|
||||
| type | Voice, Voicemail etc. |
|
||||
| transferSummary | Mock of Transfer Summary |
|
||||
| integrationCardTitle | Title over Integration card |
|
||||
| integrationCardDoc | HTML document for contents of integration card |
|
||||
| name | description |
|
||||
| -------------------- | ---------------------------------------------------------- |
|
||||
| ani | Automatic Number Identification |
|
||||
| dnis | Dialed Number Identification Service |
|
||||
| queue | Queue the Call was in before it was delivered to the agent |
|
||||
| direction | INBOUND, OUTBOUND etc. |
|
||||
| channel | AmazonConnect etc. |
|
||||
| type | Voice, Voicemail etc. |
|
||||
| transferSummary | Mock of Transfer Summary |
|
||||
| integrationCardTitle | Title over Integration card |
|
||||
| integrationCardDoc | HTML document for contents of integration card |
|
||||
|
||||
# Installing into an Innovation Lab
|
||||
|
||||
## Prerequisites
|
||||
|
||||
Make sure npm is installed and node us up to date
|
||||
|
||||
```sh
|
||||
sudo apt install npm
|
||||
sudo npm install -g n
|
||||
sudo n stable
|
||||
hash -r
|
||||
```
|
||||
|
||||
## Build the project
|
||||
|
||||
Clone this project, install and build.
|
||||
|
||||
```sh
|
||||
cd /opt/em/projects/current/demo/static
|
||||
git clone https://git.mortons.site/verint.com/ca_vue_apps.git
|
||||
cd ca_vue_apps
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Proxy Apache to the distribution
|
||||
|
||||
Add the following directive to the apache site configuration:
|
||||
|
||||
```apache
|
||||
|
||||
```
|
||||
|
||||
# Development
|
||||
|
||||
@@ -45,11 +77,19 @@ List options using:
|
||||
npm run
|
||||
```
|
||||
|
||||
Overrided API Values using a .env file. For example:
|
||||
|
||||
```env
|
||||
VITE_API_ORIGIN=https://em20.verint.live
|
||||
VITE_API_USERNAME=apiclient
|
||||
VITE_API_PASSWORD=apiclient
|
||||
```
|
||||
|
||||
## CORS Work Around
|
||||
|
||||
When developing this on localhost against Channel Automation APIs hosted elsewhere, you will need to apply a work around for CORS because the preflight check will fail with a 401 Not Authorized error.
|
||||
|
||||
The fix is to use Apache Rewrite on the API host server to respond OK to the preflight check. For example, with 'tenant-properties-service' API:
|
||||
The fix is to use Apache Rewrite on the API host server to respond OK to the preflight check. For example, with 'tenant-properties-service' API:
|
||||
|
||||
```apache
|
||||
<Location /tenant-properties-service>
|
||||
|
||||
Reference in New Issue
Block a user