After upgrading my development backend liana to forest-express-mongoose 5.4.0 → 7.6.2 I am longer able to access the development environment on forest. I am receiving the error:
Unable to authenticate you
Please verify that your admin backend is correctly configured and running, and that you have access to the internet.
On inspection of the backend I am seeing the following issue:
[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:8080/forest/authentication/callback"
],
"token_endpoint_auth_method": "none"
},
"error": {
"name": "RequestError",
"code": "ECONNREFUSED",
"timings": {
"start": 1622133518502,
"socket": 1622133518503,
"lookup": 1622133518503,
"error": 1622133520532,
"phases": {
"wait": 1,
"dns": 0,
"total": 2030
}
}
}
}
Unhandled Rejection at: Promise Promise {
<rejected> RequestError: connect ECONNREFUSED 127.0.0.1:443
at ClientRequest.<anonymous> (C:\Users\joepe\Code\buffl-backend-api\node_modules\openid-client\node_modules\got\dist\source\core\index.js:956:111)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:327:22)
at ClientRequest.origin.emit (C:\Users\joepe\Code\buffl-backend-api\node_modules\@szmarczak\http-timer\dist\source\index.js:39:20)
at TLSSocket.socketErrorListener (_http_client.js:467:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:100:8)
at emitErrorCloseNT (internal/streams/destroy.js:68:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
code: 'ECONNREFUSED',
timings: {
start: 1622133518502,
socket: 1622133518503,
lookup: 1622133518503,
connect: undefined,
secureConnect: undefined,
upload: undefined,
response: undefined,
end: undefined,
error: 1622133520532,
abort: undefined,
phases: [Object]
}
}
}
I followed the migration steps from 5.x.x → 6.x.x at which point the configuration was working fine. After the upgrade from 6.x.x → 7.x.x this started happening. I’ve followed all the steps outlined in https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb/upgrade-to-v7
Expected behavior
I would expect that open id authentication is not required for the development backend, as there is no valid callback URL to provide to the forest server… However I am not sure how or where to configure this.
Actual behavior
The forest backend seems to be trying to connect to 127.0.0.1:443 for OpenId authentication, but the connection is being refused.
Failure Logs
See above
Context
- Package Version: 7.6.2
- Express Version: 4.17.1
- Mongoose Version: 5.8.4
- Database Dialect: Mongoose
- Database Version: 4