Question
Workfront App Client OAuth2 Machine to Machine Credentials returns 401 after Preview Refresh
We have set up a Workfront API App Client OAuth2 with Machine to Machine Credentials in our Preview environment. We use this to call /integrations/oauth2/api/v1/jwt/exchange route and authenticate our API integration. This worked fine last week but after the weekly refresh to our preview environment we are receiving this response.
{
"statusCode": 401,
"error": true,
"type": "Unauthorized",
"message": "Request failed with status code 401: You are not currently logged in."
}
The refresh did not delete the existing App, its just not being authorized.
We can create a new app, generate creds and get those to work BUT we don't want our integration to break every time a refresh occurs and go through the steps to recreate the app. Does anyone have any insight into why this is happening, can be prevented or another solution?