@c8y/login 1022.26.1 → 1022.28.2
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,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/login",
|
|
3
|
-
"version": "1022.
|
|
3
|
+
"version": "1022.28.2",
|
|
4
4
|
"description": "This package is used to scaffold a login application for Cumulocity IoT.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@c8y/style": "1022.
|
|
7
|
-
"@c8y/ngx-components": "1022.
|
|
8
|
-
"@c8y/client": "1022.
|
|
9
|
-
"@c8y/bootstrap": "1022.
|
|
6
|
+
"@c8y/style": "1022.28.2",
|
|
7
|
+
"@c8y/ngx-components": "1022.28.2",
|
|
8
|
+
"@c8y/client": "1022.28.2",
|
|
9
|
+
"@c8y/bootstrap": "1022.28.2",
|
|
10
10
|
"@angular/cdk": "^19.2.18",
|
|
11
|
+
"monaco-editor": "~0.52.2",
|
|
11
12
|
"ngx-bootstrap": "19.0.2",
|
|
12
13
|
"rxjs": "7.8.1"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
|
-
"@c8y/options": "1022.
|
|
16
|
-
"@c8y/devkit": "1022.
|
|
16
|
+
"@c8y/options": "1022.28.2",
|
|
17
|
+
"@c8y/devkit": "1022.28.2"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
20
|
"@angular/common": ">=19 <20"
|
|
@@ -315,7 +315,11 @@ export class LoginService extends SimplifiedAuthService {
|
|
|
315
315
|
if (!redirectPath) {
|
|
316
316
|
return false;
|
|
317
317
|
}
|
|
318
|
-
const userHasAccessToApp =
|
|
318
|
+
const userHasAccessToApp =
|
|
319
|
+
// in case of local development we do not need to verify if the user has access to the app
|
|
320
|
+
// This way developers do not need to create the application in the tenant before developing
|
|
321
|
+
window.location.hostname === 'localhost' ||
|
|
322
|
+
(await this.userHasAccessToApp(user, redirectPath));
|
|
319
323
|
|
|
320
324
|
if (!userHasAccessToApp) {
|
|
321
325
|
return false;
|