I’ve experienced some failed login with error of ‘Authorization Extension: ESOCKETTIMEDOUT’ from the logs.
I checked that this might be related to ESOCKETTIMEDOUT with Pre User Registration hook which stated that the timeout limit is 20seconds.
Orher possible solution I found is to increase timelimit on Authorization extension script on rules from 5s to 10s. But not sure if this is what causing the problem.
function getPolicy(user, context, cb) {
request.post({
url: EXTENSION_URL + "/api/users/" + user.user_id + "/policy/" + context.clientID,
headers: {
"x-api-key": configuration.AUTHZ_EXT_API_KEY
},
json: {
connectionName: context.connection || user.identities[0].connection,
groups: parseGroups(user.groups)
},
timeout: 10000
}, cb);
}
Any help would be appreciated