@c8y/login 1022.4.9 → 1022.4.14

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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@c8y/login",
3
- "version": "1022.4.9",
3
+ "version": "1022.4.14",
4
4
  "description": "This package is used to scaffold a login application for Cumulocity IoT.",
5
5
  "dependencies": {
6
- "@c8y/style": "1022.4.9",
7
- "@c8y/ngx-components": "1022.4.9",
8
- "@c8y/client": "1022.4.9",
9
- "@c8y/bootstrap": "1022.4.9",
6
+ "@c8y/style": "1022.4.14",
7
+ "@c8y/ngx-components": "1022.4.14",
8
+ "@c8y/client": "1022.4.14",
9
+ "@c8y/bootstrap": "1022.4.14",
10
10
  "@angular/cdk": "^19.2.18",
11
11
  "ngx-bootstrap": "19.0.2",
12
12
  "rxjs": "7.8.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@c8y/options": "1022.4.9",
16
- "@c8y/devkit": "1022.4.9"
15
+ "@c8y/options": "1022.4.14",
16
+ "@c8y/devkit": "1022.4.14"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@angular/common": ">=19 <20"
@@ -167,7 +167,7 @@ export class LoginComponent implements OnInit, OnDestroy {
167
167
  } catch (e) {
168
168
  await this.loginService.clearCookies();
169
169
  const preferredLoginOptionType = this.loginService.loginMode.type;
170
- if (preferredLoginOptionType === TenantLoginOptionType.OAUTH2) {
170
+ if (preferredLoginOptionType === TenantLoginOptionType.OAUTH2 && e.res?.status !== 403) {
171
171
  this.loginService.redirectToOauth();
172
172
  } else {
173
173
  this.reset(false);