Hi All,
So I want to create integration tests via Node.js to run locally on my machine and eventually use in an automated pipeline.
We have a Test application (Test Application) Machine to Machine
and in the Quick Start, there is an example to get the access token and then use the access token against our APIs.
I have tried the example against both Auth0 Management API
and our Dev application.
Both times, the first request returns an access token but when I try the access token against our API the Node.js Express application returns a 400 error.
{
statusCode: 400,
error: 'Bad Request',
message: "Object didn't pass validation for format user-id: XXX@clients",
errorCode: 'invalid_uri'
}
the User Id doesn’t have auth0|XXX
but XXX@clients
, I am not sure if that is the issue or not.
Surely the quick start guide should work so I presume I am missing some Auth0 configuration in the Test application?
Please help.