@telia-ace/alliance-portal 1.0.6-next.4 → 1.0.6-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/config.js +1 -0
- package/dist/index.js +1 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @telia-ace/alliance-portal
|
|
2
2
|
|
|
3
|
+
## 1.0.6-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c9b1488]
|
|
8
|
+
- @telia-ace/alliance-internal-node-utilities@1.0.3-next.3
|
|
9
|
+
|
|
10
|
+
## 1.0.6-next.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- f2aafe4: Store user session in Redis cache to avoid hitting cookie size limits (https://github.com/telia-company/ace-alliance-sdk/issues/377).
|
|
15
|
+
- Updated dependencies [f2aafe4]
|
|
16
|
+
- @telia-ace/alliance-internal-node-utilities@1.0.3-next.2
|
|
17
|
+
|
|
3
18
|
## 1.0.6-next.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/config.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.ConfigKeys = void 0;
|
|
|
4
4
|
var ConfigKeys;
|
|
5
5
|
(function (ConfigKeys) {
|
|
6
6
|
ConfigKeys["AuthScopes"] = "AUTH_SCOPES";
|
|
7
|
+
ConfigKeys["AuthAuthority"] = "AUTH_AUTHORITY";
|
|
7
8
|
ConfigKeys["AuthClientSecret"] = "AUTH_CLIENT_SECRET";
|
|
8
9
|
ConfigKeys["AuthClientId"] = "AUTH_CLIENT_ID";
|
|
9
10
|
ConfigKeys["AuthResponseType"] = "AUTH_RESPONSE_TYPE";
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ async function startPortal() {
|
|
|
26
26
|
response_type: configService.getOrThrow(config_2.ConfigKeys.AuthResponseType),
|
|
27
27
|
scope: configService.getOrThrow(config_2.ConfigKeys.AuthScopes),
|
|
28
28
|
},
|
|
29
|
+
issuerBaseURL: `${configService.getOrThrow(config_2.ConfigKeys.AuthAuthority)}/.well-known/openid-configuration`,
|
|
29
30
|
async afterCallback(_, __, session) {
|
|
30
31
|
const claims = (0, jose_1.decodeJwt)(session.id_token);
|
|
31
32
|
const user = {
|
|
@@ -62,10 +63,6 @@ async function startPortal() {
|
|
|
62
63
|
}
|
|
63
64
|
catch { }
|
|
64
65
|
}
|
|
65
|
-
// FUTURE TODO: Implement some external storage for sessions, such as redis
|
|
66
|
-
// Temporary - With this the stored session cookie gets too big
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
delete session.access_token;
|
|
69
66
|
return session;
|
|
70
67
|
},
|
|
71
68
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-portal",
|
|
3
|
-
"version": "1.0.6-next.
|
|
3
|
+
"version": "1.0.6-next.6",
|
|
4
4
|
"description": "ACE Alliance portal",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@nestjs/config": "^3.0.0",
|
|
20
20
|
"@nestjs/core": "^10.1.0",
|
|
21
21
|
"@nestjs/platform-express": "^10.1.0",
|
|
22
|
-
"@telia-ace/alliance-internal-node-utilities": "1.0.3-next.
|
|
22
|
+
"@telia-ace/alliance-internal-node-utilities": "1.0.3-next.3",
|
|
23
23
|
"express-openid-connect": "^2.16.0",
|
|
24
24
|
"graphql": "^16.7.1",
|
|
25
25
|
"graphql-request": "^6.1.0",
|