Using the JWT marketplace model, I'm trying to generate the JWT auth bearer token for a REST Service (Target API Authentication - CData Connect Cloud), however an unauthorized error is returned. I updated the JWT object to hold the tokenType payload but was still getting an unauthorized error. I tried updating the iat / exp data type to long and manually setting the values and this resulted in a Java Action datatype error. When hitting the API through postman, I can successfully authenticate since the JWT is handled by postman. I can then grab that token and hardcode it into the Mendix REST Services activity and successfully able to make the call.
↧