I am invoking a REST API with a Bearer Token but always receive 'Invalid Request - Missing Token'. Though when the same token is used to invoke the REST API from POSTMAN, it works fine.
GET https://api.adp.com/core/v1/operations/workerInformationManagement/hr.v2.workers/1421855812%5F3170?$... HTTP/1.1Accept-Encoding: gzip,deflateAuthorization: Bearer 428a0639-d5f8-4c1d-9116-dba8937dcdf0Host: api.adp.comConnection: Keep-AliveUser-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_112)
HTTP/1.1 401 UnauthorizedADP-CorrelationID: 287a2173-66ec-413e-b64a-f1cada4ff6a0Pragma: no-cacheCache-Control: no-store, no-cache, privateContent-Type: application/jsonContent-Length: 114Date: Thu, 15 Jun 2017 07:51:29 GMTServer: ADP API
Can anyone please help?
Thank you for your post!You need to compare raw requests from Ready! API and from Postman. To get a Raw request from Postman, you can use Fiddler: http://www.telerik.com/download/fiddler.Did you successfully retrieved the Access token in Ready! API: https://support.smartbear.com/readyapi/docs/projects/requests/auth/types/oauth2/tutorial.html? Do you see any error about the authorization in the log?Maybe, you need to send the access token as a query parameter: https://support.smartbear.com/readyapi/docs/projects/requests/auth/types/oauth2/advanced-options.htm...If you still cannot resolve the issue, you can open a new support case here: https://support.smartbear.com/message/?prod=ReadyAPI and provide the Support team with the details (raw requests, screenshots, etc.).