When using OAuth 2.0 authentication with the Integration REST Agent, jobs fail with an Unauthorized (401) error. The job report or network logs show the Authorization header using an non-standard prefix:
Authorization: OAuth ####
The target API expects the standard Bearer prefix:
Authorization: Bearer ####
Automic Workload Automation
Integration REST Agent 24.2.0 and earlier
RA WebService REST Agent (all versions)
A product defect (DE174378) causes the agent to append the "OAuth" prefix instead of "Bearer" by default in certain configurations, or fails to read the access token correctly as a bearer token.
This issue is resolved in Integration REST Agent version 24.2.1 and higher.
Fixed in release 24.2.1 and higher.
If an upgrade is not immediately possible, manually define the Authorization header in the REST job configuration:
Authorization.Bearer &TOKEN# (where &TOKEN# is a variable containing your access token).