@telia-ace/alliance-portal 1.0.6-next.6 → 1.0.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 +26 -0
- package/dist/app.controller.js +1 -2
- package/dist/index.js +4 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @telia-ace/alliance-portal
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e8eda01: Fix issue with user session cookie being too large.
|
|
8
|
+
- ba13c59: Use `.env` files for configuration during development instead of JS/TS modules.
|
|
9
|
+
- 0f20a09: Change to unformatted JSON logs.
|
|
10
|
+
- ba13c59: Set user as `system-admin` if user claims include ACE Enterprise Admin group/role.
|
|
11
|
+
- f2aafe4: Store user session in Redis cache to avoid hitting cookie size limits (https://github.com/telia-company/ace-alliance-sdk/issues/377).
|
|
12
|
+
- cb4647b: Fix incomprehensible unauthorized text for users with insufficient workspace access.
|
|
13
|
+
- f743a2b: Skip checking user claims for groups when `AUTH_SKIP_GROUP_CLAIM_CHECK` is set to `'true'`.
|
|
14
|
+
- Updated dependencies [0f20a09]
|
|
15
|
+
- Updated dependencies [ba11e1f]
|
|
16
|
+
- Updated dependencies [f2aafe4]
|
|
17
|
+
- Updated dependencies [828548a]
|
|
18
|
+
- Updated dependencies [c9b1488]
|
|
19
|
+
- @telia-ace/alliance-internal-node-utilities@1.0.3
|
|
20
|
+
|
|
21
|
+
## 1.0.6-next.7
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 0f20a09: Change to unformatted JSON logs.
|
|
26
|
+
- Updated dependencies [0f20a09]
|
|
27
|
+
- @telia-ace/alliance-internal-node-utilities@1.0.3-next.4
|
|
28
|
+
|
|
3
29
|
## 1.0.6-next.6
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/app.controller.js
CHANGED
|
@@ -56,8 +56,7 @@ let AppController = exports.AppController = class AppController {
|
|
|
56
56
|
if (!req.query['wp-tag'] && !req.query['wp-version']) {
|
|
57
57
|
distributionOptions.tag = this.configService.getOrThrow(config_2.ConfigKeys.WebprovisionsTag);
|
|
58
58
|
}
|
|
59
|
-
this.logger.trace({
|
|
60
|
-
msg: 'opening portal',
|
|
59
|
+
this.logger.trace('opening portal', {
|
|
61
60
|
user: req.oidc.user,
|
|
62
61
|
distributionOptions,
|
|
63
62
|
distributionUrl,
|
package/dist/index.js
CHANGED
|
@@ -34,8 +34,7 @@ async function startPortal() {
|
|
|
34
34
|
email: claims.email || claims.emails[0] || 'Empty email',
|
|
35
35
|
objectId: claims.sub || claims.oid,
|
|
36
36
|
};
|
|
37
|
-
logger.trace({
|
|
38
|
-
msg: 'decoded JWT and mapped claims to user, getting or creating user in database',
|
|
37
|
+
logger.trace('decoded JWT and mapped claims to user, getting or creating user in database', {
|
|
39
38
|
claims,
|
|
40
39
|
user,
|
|
41
40
|
});
|
|
@@ -44,7 +43,7 @@ async function startPortal() {
|
|
|
44
43
|
await (0, graphql_request_1.request)(configService.getOrThrow(alliance_internal_node_utilities_1.SharedConfigKeys.DbEndpoint), graphql_1.GetOrCreateUserDocument, { input: user }, {
|
|
45
44
|
authorization: (0, alliance_internal_node_utilities_1.createSystemUserToken)(configService),
|
|
46
45
|
});
|
|
47
|
-
logger.trace(
|
|
46
|
+
logger.trace('added user to database, if it did not already exist');
|
|
48
47
|
}
|
|
49
48
|
catch { }
|
|
50
49
|
// For easier testing as system admin during development
|
|
@@ -52,14 +51,12 @@ async function startPortal() {
|
|
|
52
51
|
'true';
|
|
53
52
|
if (!skipGroupClaimCheck) {
|
|
54
53
|
const type = hasEnterpriseAdminRole(claims) ? 'system-admin' : 'user';
|
|
55
|
-
logger.trace(
|
|
54
|
+
logger.trace('updating user type according to user claims', { type });
|
|
56
55
|
try {
|
|
57
56
|
await (0, graphql_request_1.request)(configService.getOrThrow(alliance_internal_node_utilities_1.SharedConfigKeys.DbEndpoint), graphql_1.SetUserTypeDocument, { input: { objectId: user.objectId, type } }, {
|
|
58
57
|
authorization: (0, alliance_internal_node_utilities_1.createSystemUserToken)(configService),
|
|
59
58
|
});
|
|
60
|
-
logger.trace(
|
|
61
|
-
msg: 'user type updated',
|
|
62
|
-
});
|
|
59
|
+
logger.trace('user type updated');
|
|
63
60
|
}
|
|
64
61
|
catch { }
|
|
65
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-portal",
|
|
3
|
-
"version": "1.0.6
|
|
3
|
+
"version": "1.0.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
|
|
22
|
+
"@telia-ace/alliance-internal-node-utilities": "1.0.3",
|
|
23
23
|
"express-openid-connect": "^2.16.0",
|
|
24
24
|
"graphql": "^16.7.1",
|
|
25
25
|
"graphql-request": "^6.1.0",
|