Thanks for clearing that up, have disabled Enterprise.
The login is successful on the custom-db side of things. It is returning a 200 with the user data, and the login action script is setting the name/nickname correctly as this is being set against the user in User Management
Something is going wrong after that though as I’m getting the 400. If I look in the logs I’m getting “Failed Login”.
Raw:
{
"date": "2022-06-29T15:04:32.295Z",
"type": "f",
"description": "Request failed with status code 404",
"connection": "matt-local-users",
"connection_id": "con_LNdghu02qiam3Xto",
"client_id": "####",
"client_name": "oidc-app",
"ip": "2a01:4c8:10fa:8cf:2f14:9731:fffe:fae5",
"user_agent": "Chrome 102.0.5005 / Linux 0.0.0",
"details": {
"body": {},
"qs": {
"state": "alhaKNoz9_Y0piQ3HGki89N54Z3fRhbC"
},
"connection": "matt-local-users",
"error": {
"message": "Request failed with status code 404",
"oauthError": "access_denied",
"type": "oauth-authorization"
},
"session_id": "9cyb4qYPMf-bic3hJwGUGS38-PkDxX-o",
"actions": {
"executions": [
"9fdL0KLhSwqWP0UUedjMSjIwMjIwNjI5"
]
}
},
"hostname": "####",
"user_id": "auth0|87e456e8-d494-4040-9e93-a0bb691320ae",
"user_name": "Everett Renner I",
"strategy": "auth0",
"strategy_type": "database",
"audience": "https://####/userinfo",
"scope": [
"openid",
"profile",
"email"
],
"log_id": "90020220629150434017473372733025401167369357927844413506",
"_id": "90020220629150434017473372733025401167369357927844413506",
"isMobile": false,
"id": "90020220629150434017473372733025401167369357927844413506"
}
Context:
{
"body": {},
"qs": {
"state": "alhaKNoz9_Y0piQ3HGki89N54Z3fRhbC"
},
"connection": "matt-local-users",
"error": {
"message": "Request failed with status code 404",
"oauthError": "access_denied",
"type": "oauth-authorization"
},
"session_id": "9cyb4qYPMf-bic3hJwGUGS38-PkDxX-o",
"actions": {
"executions": [
"9fdL0KLhSwqWP0UUedjMSjIwMjIwNjI5"
]
}
}
Action Details:
{
"action_name": "Create/Get User",
"response": {
"error": {
"message": "Request failed with status code 404",
"name": "Error",
"stack": "Error: Request failed with status code 404\n at createError (/data/_verquire/axios/0.15.2/node_modules/axios/lib/core/createError.js:15:15)\n at settle (/data/_verquire/axios/0.15.2/node_modules/axios/lib/core/settle.js:18:12)\n at IncomingMessage.handleStreamEnd (/data/_verquire/axios/0.15.2/node_modules/axios/lib/adapters/http.js:168:11)\n at IncomingMessage.emit (node:events:406:35)\n at IncomingMessage.emit (node:domain:532:15)\n at endReadableNT (node:internal/streams/readable:1329:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"
},
"stats": {
"total_request_duration_ms": 428,
"total_runtime_execution_duration_ms": 425,
"runtime_processing_duration_ms": 38,
"action_duration_ms": 387,
"boot_duration_ms": 38,
"network_duration_ms": 3
}
},
"error": {
"id": "invalid_argument",
"msg": "Invalid Argument"
},
"started_at": "2022-06-29T15:04:31.857447929Z",
"ended_at": "2022-06-29T15:04:32.285913108Z"
}
This failed action is called “Create/Get User”"… It seems to imply that I need to implement a Create User and/or a Get User action as well as Login?
I wouldn’t think this would be the case as Get User for example is used to “check if a user exists before executing flows that do not require authentication (signup and password reset)”
For what its worth I have created a Get User function that returns a dummy profile but I still get the 404