@c8y/login 1023.4.6 → 1023.6.3

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