I’m migrating to forest admin 7 and I’m running in to an issue while using the forest agent on my localhost. I can no longer connect to forest admin locally, even though this was working before. This issue was first identified here: Authentication error after migrating to forest-express-sequelize v7 - #3 by agarbund, but it appears that the poster fixed the problem but did not post their solution.
Failure Logs
[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:3310/forest/authentication/callback"
],
"token_endpoint_auth_method": "none"
},
"error": {
"name": "RequestError",
"code": "ECONNREFUSED",
"timings": {
"start": 1621288102003,
"socket": 1621288102005,
"lookup": 1621288102005,
"error": 1621288102006,
"phases": {
"wait": 2,
"dns": 0,
"total": 3
}
}
}
}
[forest] 🌳🌳🌳 Unexpected error: connect ECONNREFUSED 127.0.0.1:443
{
"name": "RequestError",
"code": "ECONNREFUSED",
"timings": {
"start": 1621288102003,
"socket": 1621288102005,
"lookup": 1621288102005,
"error": 1621288102006,
"phases": {
"wait": 2,
"dns": 0,
"total": 3
}
},
"stack": "RequestError: connect ECONNREFUSED 127.0.0.1:443\n at ClientRequest.<anonymous> (/Users/slopes/forerunner/crs-dashboard/node_modules/openid-client/node_modules/got/dist/source/core/index.js:956:111)\n at Object.onceWrapper (node:events:483:26)\n at ClientRequest.emit (node:events:388:22)\n at ClientRequest.EventEmitter.emit (node:domain:470:12)\n at ClientRequest.origin.emit (/Users/slopes/forerunner/crs-dashboard/node_modules/openid-client/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)\n at TLSSocket.socketErrorListener (node:_http_client:486:9)\n at TLSSocket.emit (node:events:376:20)\n at TLSSocket.EventEmitter.emit (node:domain:470:12)\n at emitErrorNT (node:internal/streams/destroy:188:8)\n at emitErrorCloseNT (node:internal/streams/destroy:153:3)\n at processTicksAndRejections (node:internal/process/task_queues:80:21)\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1138:16)\n at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:131:14)"
}
Context
Please provide any relevant information about your setup.
- Package Version: 7.0.0
- Express Version: 4.16.4
- Sequelize Version: 6.5.0
- Database Dialect: postgres
- Database Version: 11.10
Note that I can curl / wget api.forestadmin.com
just fine from my localhost, so I’m not entirely sure what’s going on.