chyz 1.0.13-rc.10 → 1.0.13-rc.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/Examples/Controllers/ApiController.ts +9 -6
- package/Examples/Controllers/BasicApiController.ts +121 -0
- package/Examples/Controllers/SiteController.ts +26 -9
- package/Examples/Models/KeycloakUser.ts +4 -0
- package/Examples/Models/User.ts +8 -1
- package/Examples/log/app.log +723 -0
- package/Examples/log/errors.log +85 -0
- package/Examples/yarn.lock +2549 -0
- package/base/BaseError.ts +3 -1
- package/base/Model.ts +31 -25
- package/base/ModelManager.ts +6 -1
- package/dist/base/BaseError.js +5 -1
- package/dist/base/BaseError.js.map +1 -1
- package/dist/base/Model.js +5 -2
- package/dist/base/Model.js.map +1 -1
- package/dist/base/ModelManager.js +0 -8
- package/dist/base/ModelManager.js.map +1 -1
- package/dist/filters/auth/HttpBasicAuth.js +65 -0
- package/dist/filters/auth/HttpBasicAuth.js.map +1 -1
- package/dist/filters/auth/index.js +1 -0
- package/dist/filters/auth/index.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/rbac/AuthManager.js.map +1 -1
- package/filters/auth/HttpBasicAuth.ts +68 -0
- package/filters/auth/index.ts +1 -0
- package/package.json +1 -2
- package/rbac/AuthManager.ts +2 -0
- package/web/IdentityInterface.ts +6 -0
- package/package-lock.json +0 -5259
package/Examples/log/errors.log
CHANGED
|
@@ -1524,3 +1524,88 @@
|
|
|
1524
1524
|
sql: 'SELECT "CategoriesClass"."id", "CategoriesClass"."title", "CategoriesClass"."properties", "ProductsClasses"."id" AS "ProductsClasses.id", "ProductsClasses"."title" AS "ProductsClasses.title", "ProductsClasses"."model_id" AS "ProductsClasses.model_id", "ProductsClasses"."properties" AS "ProductsClasses.properties", "ProductsClasses->ProductToCategoriesClass"."product_id" AS "ProductsClasses.ProductToCategoriesClass.product_id", "ProductsClasses->ProductToCategoriesClass"."category_id" AS "ProductsClasses.ProductToCategoriesClass.category_id", "ProductsClasses->ProductToCategoriesClass"."ProductsClassId" AS "ProductsClasses.ProductToCategoriesClass.ProductsClassId" FROM "categories" AS "CategoriesClass" LEFT OUTER JOIN ( "product_to_categories" AS "ProductsClasses->ProductToCategoriesClass" INNER JOIN "products" AS "ProductsClasses" ON "ProductsClasses"."id" = "ProductsClasses->ProductToCategoriesClass"."ProductsClassId") ON "CategoriesClass"."id" = "ProductsClasses->ProductToCategoriesClass"."category_id";',
|
|
1525
1525
|
parameters: undefined
|
|
1526
1526
|
}
|
|
1527
|
+
[2021-12-21T15.07.31.187] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - UnauthorizedHttpException: Your request was made with invalid credentials.
|
|
1528
|
+
at new BaseError (C:\PROJELER\github\Chy-Nodejs-Framework\base\BaseError.ts:16:15)
|
|
1529
|
+
at new UnauthorizedHttpException (C:\PROJELER\github\Chy-Nodejs-Framework\base\UnauthorizedHttpException.ts:12:9)
|
|
1530
|
+
at HttpBasicAuth.handleFailure (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:64:15)
|
|
1531
|
+
at HttpBasicAuth.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:50:14)
|
|
1532
|
+
at Generator.next (<anonymous>)
|
|
1533
|
+
at fulfilled (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:5:58)
|
|
1534
|
+
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
|
|
1535
|
+
statusCode: 401
|
|
1536
|
+
}
|
|
1537
|
+
[2021-12-21T15.08.24.448] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - UnauthorizedHttpException: Your request was made with invalid credentials.
|
|
1538
|
+
at new BaseError (C:\PROJELER\github\Chy-Nodejs-Framework\base\BaseError.ts:16:15)
|
|
1539
|
+
at new UnauthorizedHttpException (C:\PROJELER\github\Chy-Nodejs-Framework\base\UnauthorizedHttpException.ts:12:9)
|
|
1540
|
+
at HttpBasicAuth.handleFailure (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:64:15)
|
|
1541
|
+
at HttpBasicAuth.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:50:14)
|
|
1542
|
+
at Generator.next (<anonymous>)
|
|
1543
|
+
at fulfilled (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:5:58)
|
|
1544
|
+
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
|
|
1545
|
+
statusCode: 401
|
|
1546
|
+
}
|
|
1547
|
+
[2021-12-21T15.08.37.681] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - UnauthorizedHttpException: Your request was made with invalid credentials.
|
|
1548
|
+
at new BaseError (C:\PROJELER\github\Chy-Nodejs-Framework\base\BaseError.ts:16:15)
|
|
1549
|
+
at new UnauthorizedHttpException (C:\PROJELER\github\Chy-Nodejs-Framework\base\UnauthorizedHttpException.ts:12:9)
|
|
1550
|
+
at HttpBasicAuth.handleFailure (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:64:15)
|
|
1551
|
+
at HttpBasicAuth.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:50:14)
|
|
1552
|
+
at Generator.next (<anonymous>)
|
|
1553
|
+
at fulfilled (C:\PROJELER\github\Chy-Nodejs-Framework\filters\auth\AuthMethod.ts:5:58)
|
|
1554
|
+
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
|
|
1555
|
+
statusCode: 401
|
|
1556
|
+
}
|
|
1557
|
+
[2021-12-21T15.08.45.905] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - TypeError: Cannot read property 'payload' of null
|
|
1558
|
+
at User.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:81:21)
|
|
1559
|
+
at Generator.next (<anonymous>)
|
|
1560
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:8:71
|
|
1561
|
+
at new Promise (<anonymous>)
|
|
1562
|
+
at __awaiter (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:4:12)
|
|
1563
|
+
at User.findIdentityByAccessToken (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:66:16)
|
|
1564
|
+
at WebUser.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:74:42)
|
|
1565
|
+
at Generator.next (<anonymous>)
|
|
1566
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:8:71
|
|
1567
|
+
at new Promise (<anonymous>)
|
|
1568
|
+
[2021-12-21T15.09.26.818] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - TypeError: Cannot read property 'payload' of null
|
|
1569
|
+
at User.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:81:21)
|
|
1570
|
+
at Generator.next (<anonymous>)
|
|
1571
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:8:71
|
|
1572
|
+
at new Promise (<anonymous>)
|
|
1573
|
+
at __awaiter (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:4:12)
|
|
1574
|
+
at User.findIdentityByAccessToken (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:66:16)
|
|
1575
|
+
at WebUser.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:74:42)
|
|
1576
|
+
at Generator.next (<anonymous>)
|
|
1577
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:8:71
|
|
1578
|
+
at new Promise (<anonymous>)
|
|
1579
|
+
[2021-12-21T15.09.29.037] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - TypeError: Cannot read property 'payload' of null
|
|
1580
|
+
at User.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:81:21)
|
|
1581
|
+
at Generator.next (<anonymous>)
|
|
1582
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:8:71
|
|
1583
|
+
at new Promise (<anonymous>)
|
|
1584
|
+
at __awaiter (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:4:12)
|
|
1585
|
+
at User.findIdentityByAccessToken (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:66:16)
|
|
1586
|
+
at WebUser.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:74:42)
|
|
1587
|
+
at Generator.next (<anonymous>)
|
|
1588
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:8:71
|
|
1589
|
+
at new Promise (<anonymous>)
|
|
1590
|
+
[2021-12-21T15.09.39.005] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - TypeError: Cannot read property 'payload' of null
|
|
1591
|
+
at User.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:81:21)
|
|
1592
|
+
at Generator.next (<anonymous>)
|
|
1593
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:8:71
|
|
1594
|
+
at new Promise (<anonymous>)
|
|
1595
|
+
at __awaiter (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:4:12)
|
|
1596
|
+
at User.findIdentityByAccessToken (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:66:16)
|
|
1597
|
+
at WebUser.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:74:42)
|
|
1598
|
+
at Generator.next (<anonymous>)
|
|
1599
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:8:71
|
|
1600
|
+
at new Promise (<anonymous>)
|
|
1601
|
+
[2021-12-21T15.10.06.525] [ERROR] BaseChyz [205] [C:\PROJELER\github\Chy-Nodejs-Framework\BaseChyz.ts] - TypeError: Cannot read property 'payload' of null
|
|
1602
|
+
at User.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:81:21)
|
|
1603
|
+
at Generator.next (<anonymous>)
|
|
1604
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:8:71
|
|
1605
|
+
at new Promise (<anonymous>)
|
|
1606
|
+
at __awaiter (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:4:12)
|
|
1607
|
+
at User.findIdentityByAccessToken (C:\PROJELER\github\Chy-Nodejs-Framework\Examples\Models\User.ts:66:16)
|
|
1608
|
+
at WebUser.<anonymous> (C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:74:42)
|
|
1609
|
+
at Generator.next (<anonymous>)
|
|
1610
|
+
at C:\PROJELER\github\Chy-Nodejs-Framework\web\WebUser.ts:8:71
|
|
1611
|
+
at new Promise (<anonymous>)
|