@telia-ace/alliance-portal 1.0.6-next.4 → 1.0.6-next.5

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @telia-ace/alliance-portal
2
2
 
3
+ ## 1.0.6-next.5
4
+
5
+ ### Patch Changes
6
+
7
+ - f2aafe4: Store user session in Redis cache to avoid hitting cookie size limits (https://github.com/telia-company/ace-alliance-sdk/issues/377).
8
+ - Updated dependencies [f2aafe4]
9
+ - @telia-ace/alliance-internal-node-utilities@1.0.3-next.2
10
+
3
11
  ## 1.0.6-next.4
4
12
 
5
13
  ### 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.4",
3
+ "version": "1.0.6-next.5",
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.1",
22
+ "@telia-ace/alliance-internal-node-utilities": "1.0.3-next.2",
23
23
  "express-openid-connect": "^2.16.0",
24
24
  "graphql": "^16.7.1",
25
25
  "graphql-request": "^6.1.0",