Skip to content

Commit 469f5b7

Browse files
Merge pull request #32 from IABTechLab/ans-UID2-3220-update-js-sdk-server-side-example
updated to most recent sdk version and functionality of init/callback
2 parents aa41bee + 6efc27e commit 469f5b7

File tree

8 files changed

+954
-273
lines changed

8 files changed

+954
-273
lines changed

publisher/server_only/package-lock.json

Lines changed: 468 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

publisher/server_only/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
},
1414
"dependencies": {
1515
"axios": "^0.23.0",
16+
"body-parser": "^1.20.3",
1617
"cookie-session": "^1.4.0",
1718
"ejs": "^3.1.7",
18-
"express": "^4.18.2",
19-
"nocache": "^3.0.1"
19+
"express": "^4.21.2",
20+
"nocache": "^3.0.1",
21+
"path-to-regexp": "^8.2.0"
2022
},
2123
"devDependencies": {
2224
"eslint": "^7.29.0",

publisher/standard/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ docker run -it --rm -p 3000:3000 \
2020
uid2-publisher-standard
2121
```
2222

23+
24+
If this command does not work in Powershell because of the `-e` variable, try running in Command Prompt with quotes around each variable like so:
25+
```
26+
docker build . -t uid2-publisher-server
27+
docker run -it --rm -p 3000:3000 -e "UID2_BASE_URL=https://operator-integ.uidapi.com" -e "UID2_API_KEY={INTEG_API_KEY}" -e "UID2_CLIENT_SECRET={CLIENT_SECRET}" uid2-publisher-server
28+
```
29+
2330
The following table lists the environment variables that you must specify to start the application.
2431

2532
| Parameter | Data Type | Description |

0 commit comments

Comments
 (0)