I have created an app in the developer cockpit. I also added roles for the app and issues credentials. I received a client secret and client id. I assume that I can copy the tenant name which I find in my cockpit to the following constants in Mendix:
*HostTenant (Name of Tenant where application is hosted.
Name is used during retrieval of application credentials.)
*UserTenant (Used in get application credentials.)
Could it be related to the fact that I am using a free tenant?
you also have to set the constant CockpitApplicationName. Make sure to take the same as the name from the application you are taking the application credentials from.
Hope this is helping.
Thanks Stefan for the suggestion, but unfortunately this is not the cause of the problem. I already had the name filled in. In fact I have configured all the local constants. When debugging the microflow I always end up with latesthttp response: Bad credentials.
the credentials also have a version number. Maybe this one is not fitting?
The credential screen which is popping up when you start your app locally shows the given values from your constants. Are these the right ones?
If this is all not helping, maybe try to generate new credentials, but make sure that you increase the version number accordingly