I just did the upgrade from "forest-express-mongoose": "^3.2.4"
, to "forest-express-mongoose": "^7.7.1"
as per your docs Upgrade to v7 - Documentation. Just having some trouble with the authentication now though. I donβt have my express server running on port 433 with HTTPS but instead, I have a load balancer in front of it that handles the HTTPS side of things. This worked with the previous version of Liana but not now. From the error message given it seems to be expecting the express node process itself to be running on port 433 locally.
Is this correct, it seems to be overly restrictive to dictate how the process runs on the server. Is there any way around this?
- Package Version: 7.7.1
- Express Version: 4.17
- Database Dialect: MongoDB
These are the logs on my node server when this happens:
[forest] π³π³π³ Unable to register the client
{
"configuration": {
"authorization_endpoint": "https://api.forestadmin.com/oidc/auth",
"device_authorization_endpoint": "https://api.forestadmin.com/oidc/device/auth",
"claims_parameter_supported": false,
"claims_supported": [
"sub",
"email",
"sid",
"auth_time",
"iss"
],
"code_challenge_methods_supported": [
"S256"
],
"end_session_endpoint": "https://api.forestadmin.com/oidc/session/end",
"grant_types_supported": [
"authorization_code",
"urn:ietf:params:oauth:grant-type:device_code"
],
"id_token_signing_alg_values_supported": [
"HS256",
"RS256"
],
"issuer": "https://api.forestadmin.com",
"jwks_uri": "https://api.forestadmin.com/oidc/jwks",
"registration_endpoint": "https://api.forestadmin.com/oidc/reg",
"response_modes_supported": [
"query"
],
"response_types_supported": [
"code",
"none"
],
"scopes_supported": [
"openid",
"email",
"profile"
],
"subject_types_supported": [
"public"
],
"token_endpoint_auth_methods_supported": [
"none"
],
"token_endpoint_auth_signing_alg_values_supported": [],
"token_endpoint": "https://api.forestadmin.com/oidc/token",
"request_object_signing_alg_values_supported": [
"HS256",
"RS256"
],
"request_parameter_supported": false,
"request_uri_parameter_supported": true,
"require_request_uri_registration": true,
"claim_types_supported": [
"normal"
]
},
"registration": {
"redirect_uris": [
"http://localhost:3000/forest/authentication/callback"
],
"token_endpoint_auth_method": "none"
},
"error": {
"name": "RequestError",
"code": "ECONNREFUSED",
"timings": {
"start": 1623482042173,
"socket": 1623482042173,
"lookup": 1623482042173,
"error": 1623482042174,
"phases": {
"wait": 0,
"dns": 0,
"total": 1
}
}
}
}
[forest] π³π³π³ Unexpected error: connect ECONNREFUSED 127.0.0.1:443
{
"name": "RequestError",
"code": "ECONNREFUSED",
"timings": {
"start": 1623482042173,
"socket": 1623482042173,
"lookup": 1623482042173,
"error": 1623482042174,
"phases": {
"wait": 0,
"dns": 0,
"total": 1
}
},
"stack": "RequestError: connect ECONNREFUSED 127.0.0.1:443\n at ClientRequest.<anonymous> (/home/ubuntu/out-there-api/node_modules/got/dist/source/core/index.js:956:111)\n at Object.onceWrapper (events.js:422:26)\n at ClientRequest.emit (events.js:327:22)\n at ClientRequest.EventEmitter.emit (domain.js:486:12)\n at ClientRequest.origin.emit (/home/ubuntu/out-there-api/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)\n at TLSSocket.socketErrorListener (_http_client.js:469:9)\n at TLSSocket.emit (events.js:315:20)\n at TLSSocket.EventEmitter.emit (domain.js:486:12)\n at emitErrorNT (internal/streams/destroy.js:106:8)\n at emitErrorCloseNT (internal/streams/destroy.js:74:3)\n at processTicksAndRejections (internal/process/task_queues.js:80:21)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)"