After rotate ClientSecret Auth0 Aplication, I can’t get users extension api
But api/user/{userid}/groups is works fine.
api/groups, api/roles is works fine.
Realtime Webtask logs
12:20:18 PM:
sandbox runtime ready
12:20:18 PM:
2024-10-11T03:20:18.795Z - info: Starting Authorization Extension - Version: 2.11.0
12:20:18 PM:
2024-10-11T03:20:18.795Z - info: > WT_URL: https://us.webtask.run/api/run/mytenant/adf6e2f2b84784b57522e3b19dfc9201
12:20:18 PM:
2024-10-11T03:20:18.796Z - info: > PUBLIC_WT_URL: https://myTenant.us.webtask.run/adf6e2f2b84784b57522e3b19dfc9201
12:20:19 PM:
2024-10-11T03:20:19.124Z - info: Initializing the Webtask Storage Context.
12:20:19 PM:
241011/032019.216, [log,info] data: Hapi initialization completed.
12:20:19 PM:
(node:18) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
12:20:19 PM:
2024-10-11T03:20:19.555Z - error: Invalid credentials for qLkfRzSZf0evBB6b1FTooHz0DkwqmItQ
12:20:19 PM:
241011/032019.556, [log,error] data: Request: GET /api/users?per_page=10&page=1
12:20:19 PM:
241011/032019.556, [log,error] data: Response: { “name”: “ManagementApiError”, “code”: “unauthorized”, “message”: “Invalid credentials for qLkfRzSZf0evBB6b1FTooHz0DkwqmItQ”, “status”: 401, “isBoom”: true, “isServer”: true, “data”: null, “output”: { “statusCode”: 500, “payload”: { “statusCode”: 500, “error”: “Internal Server Error”, “message”: “An internal server error occurred” }, “headers”: {} } }
12:20:19 PM:
241011/032019.219, [error] message: Invalid credentials for qLkfRzSZf0evBB6b1FTooHz0DkwqmItQ stack: ManagementApiError: Invalid credentials for qLkfRzSZf0evBB6b1FTooHz0DkwqmItQ at /verquire_cache/_node12/auth0-extension-hapi-tools/1.0.0/node_modules/auth0-extension-tools/src/auth0/managementApi.js:24:25 at Request.callback (/verquire_cache/_node12/auth0-extension-hapi-tools/1.0.0/node_modules/superagent/lib/node/index.js:715:3) at /verquire_cache/_node12/auth0-extension-hapi-tools/1.0.0/node_modules/superagent/lib/node/index.js:903:18 at IncomingMessage. (/verquire_cache/_node12/auth0-extension-hapi-tools/1.0.0/node_modules/superagent/lib/node/parsers/json.js:19:7) at IncomingMessage.emit (events.js:326:22) at IncomingMessage.EventEmitter.emit (domain.js:506:15) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) 241011/032019.219, [response] http://localhost:3000: get /api/users {“per_page”:10,“page”:1,“q”:“”,“field”:“”} 500 (407ms)
12:20:19 PM:
finished webtask request
And Auth0 Monitoring > Logs
{
“date”: “2024-10-14T02:10:24.519Z”,
“type”: “feccft”,
“description”: “Unauthorized”,
“connection_id”: “”,
“client_id”: “myClientId”,
“client_name”: null,
“ip”: “3.20.244.231”,
“user_agent”: “Other 0.0.0 / Other 0.0.0”,
“hostname”: “mytetant.auth0.com”,
“user_id”: “”,
“user_name”: “”,
“audience”: “https://mytenant.auth0.com/api/v2/”,
“scope”: null,
“$event_schema”: {
“version”: “1.0.0”
},
“log_id”: “90020241014021024615625000000000000001223372086372352459”,
“tenant_name”: “mytenant”,
“_id”: “90020241014021024615625000000000000001223372086372352459”,
“isMobile”: false,
“id”: “90020241014021024615625000000000000001223372086372352459”
}