update the dependencies because lb4 discover doesn't work. but now the login does not work nor does lb4 discover
"dependencies": {
"@loopback/boot": "^1.2.3",
"@loopback/context": "^1.12.0",
"@loopback/core": "^1.6.0",
"@loopback/openapi-v3": "^1.3.7",
"@loopback/repository": "^1.5.1",
"@loopback/rest": "^1.10.4",
"@loopback/rest-explorer": "^1.1.18",
"@loopback/service-proxy": "^1.1.6",
"bcrypt": "^3.0.6",
"db-migrate": "^0.11.5",
"db-migrate-pg": "^0.5.0",
"dotenv": "^7.0.0",
"dotenv-extended": "^2.4.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.11",
"loopback-connector": "^4.7.0",
"loopback-connector-kv-redis": "^3.0.1",
"loopback-connector-postgresql": "^3.6.1",
"loopback4-authentication": "^1.0.5",
"loopback4-authorization": "^2.0.0",
"loopback4-soft-delete": "^1.0.0"
},
"devDependencies": {
"@loopback/build": "^1.5.2",
"@loopback/testlab": "^1.2.5",
"@loopback/tslint-config": "^2.0.4",
"@types/bcrypt": "^3.0.0",
"@types/jsonwebtoken": "^8.3.2",
"@types/node": "^10.11.2",
"tslint": "^5.15.0",
"typescript": "^3.4.3"
}
lb4 discover (node:472216) UnhandledPromiseRejectionWarning: TypeError: Cannot set property host of #<Object> which has only a getter at Function.assign (<anonymous>) at new AuditdbDataSource (/home/user/Proyectos/test/test/dist/datasources/auditdb.datasource.js:11:16) at Object.loadDataSource (/usr/local/lib/node_modules/@loopback/cli/lib/model-discoverer.js:49:15) at dataSourceChoices.datasourcesList.map.s (/usr/local/lib/node_modules/@loopback/cli/generators/discover/index.js:108:23) at Array.map (<anonymous>) at DiscoveryGenerator.loadAllDatasources (/usr/local/lib/node_modules/@loopback/cli/generators/discover/index.js:107:46) (node:472216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:472216) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
curl -X POST "http://localhost:3000/auth/login" -H "accept: */*" -H "Content-Type: application/json" -d "{\"client_id\":\"webapp\",\"client_secret\":\"saqw21!@\",\"username\":\"super_admin\",\"password\":\"test123!@#\"}"
{ "error": { "statusCode": 401, "name": "UnauthorizedError", "message": { "message": "VerifyFunction.OauthClientPasswordFn is not implemented" } } }
@samarpan-b thanks in advance
update the dependencies because lb4 discover doesn't work. but now the login does not work nor does lb4 discover
"dependencies": {
"@loopback/boot": "^1.2.3",
"@loopback/context": "^1.12.0",
"@loopback/core": "^1.6.0",
"@loopback/openapi-v3": "^1.3.7",
"@loopback/repository": "^1.5.1",
"@loopback/rest": "^1.10.4",
"@loopback/rest-explorer": "^1.1.18",
"@loopback/service-proxy": "^1.1.6",
"bcrypt": "^3.0.6",
"db-migrate": "^0.11.5",
"db-migrate-pg": "^0.5.0",
"dotenv": "^7.0.0",
"dotenv-extended": "^2.4.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.11",
"loopback-connector": "^4.7.0",
"loopback-connector-kv-redis": "^3.0.1",
"loopback-connector-postgresql": "^3.6.1",
"loopback4-authentication": "^1.0.5",
"loopback4-authorization": "^2.0.0",
"loopback4-soft-delete": "^1.0.0"
},
"devDependencies": {
"@loopback/build": "^1.5.2",
"@loopback/testlab": "^1.2.5",
"@loopback/tslint-config": "^2.0.4",
"@types/bcrypt": "^3.0.0",
"@types/jsonwebtoken": "^8.3.2",
"@types/node": "^10.11.2",
"tslint": "^5.15.0",
"typescript": "^3.4.3"
}
lb4 discover (node:472216) UnhandledPromiseRejectionWarning: TypeError: Cannot set property host of #<Object> which has only a getter at Function.assign (<anonymous>) at new AuditdbDataSource (/home/user/Proyectos/test/test/dist/datasources/auditdb.datasource.js:11:16) at Object.loadDataSource (/usr/local/lib/node_modules/@loopback/cli/lib/model-discoverer.js:49:15) at dataSourceChoices.datasourcesList.map.s (/usr/local/lib/node_modules/@loopback/cli/generators/discover/index.js:108:23) at Array.map (<anonymous>) at DiscoveryGenerator.loadAllDatasources (/usr/local/lib/node_modules/@loopback/cli/generators/discover/index.js:107:46) (node:472216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:472216) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.curl -X POST "http://localhost:3000/auth/login" -H "accept: */*" -H "Content-Type: application/json" -d "{\"client_id\":\"webapp\",\"client_secret\":\"saqw21!@\",\"username\":\"super_admin\",\"password\":\"test123!@#\"}"{ "error": { "statusCode": 401, "name": "UnauthorizedError", "message": { "message": "VerifyFunction.OauthClientPasswordFn is not implemented" } } }@samarpan-b thanks in advance