asab_webui_shell 27.5.0 → 27.5.2-alpha.0

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.
@@ -35,7 +35,7 @@ var SidebarItem = _ref => {
35
35
  setActive = _useState2[1];
36
36
  var lowercasedItemName = item === null || item === void 0 || (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.toLowerCase();
37
37
  // Attention requred flag
38
- var itemBeacon = beacon ? beacon["beacon.".concat(lowercasedItemName)] : {};
38
+ var itemBeacon = beacon === null || beacon === void 0 ? void 0 : beacon["beacon.".concat(lowercasedItemName)];
39
39
  (0, _react.useEffect)(() => {
40
40
  // TODO: refactor the handling of active and open states, since it does not behave as expected in some cases
41
41
  if (isOpen && !isActive) {
@@ -90,6 +90,7 @@ class SeaCatAuthApi {
90
90
  if (access_token != null) {
91
91
  headers.Authorization = 'Bearer ' + access_token;
92
92
  }
93
+ console.log("userinfo", access_token, internal);
93
94
  if (internal) {
94
95
  return this.SeaCatAuthAPI.get('/openidconnect/userinfo', {
95
96
  headers: headers
@@ -32,9 +32,11 @@ class AuthModule extends _asab_webui_components.Module {
32
32
  // })
33
33
  // }),
34
34
  this.OAuthTokens = OAUTH_TOKENS;
35
+ console.log("OAuthTokens from OAUTH_TOKENS (development mode!)", this.OAuthTokens);
35
36
  } else {
36
37
  // Read OAuth tokens from session storage
37
38
  this.OAuthTokens = JSON.parse(sessionStorage.getItem('SeaCatOAuth2Tokens'));
39
+ console.log("OAuthTokens from session storage", this.OAuthTokens);
38
40
  }
39
41
  this.UserInfo = null;
40
42
  this.Api = new _api.SeaCatAuthApi(app);
@@ -343,6 +345,7 @@ class AuthModule extends _asab_webui_components.Module {
343
345
  var _this3 = this;
344
346
  return (0, _asyncToGenerator2.default)(function* () {
345
347
  var internal = _this3.OAuthTokens.internal || false;
348
+ console.log("updateUserInfo", _this3.OAuthTokens, internal);
346
349
  if (!internal) {
347
350
  var _response$data;
348
351
  var response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asab_webui_shell",
3
- "version": "27.5.0",
3
+ "version": "27.5.2-alpha.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "description": "TeskaLabs ASAB WebUI Shell Application",
6
6
  "contributors": [