I have a cumulocity tenant which requires two-factor authentication. I want to create a new microservice application in this tenant following this example, by calling the /applications endpoint with a POST request. This works already in a dummy tenant without MFA, however not on the tenant with MFA.
Even when I provide the TFAToken in the header as described here. I get a 401 Unauthorized Error
"message": "Invalid credentials! : TFA TOTP code required.",
Am I required to pass the TFA token from the authenticator in a special format - I have simply insertet the 6 digits without any spaces. Is there an encoding required?
Example Call
curl --location --request POST 'my_tenant/application/applications' \
--header 'TFAToken: 000000' \
** some other headers **
--data-raw '{
}'
Any help or pointers are much appreciated :)