Authetication token on DSS API - Java error

Hi Team,
A client is trying to retrieve authentication token using Java script as mentioned in the tutorial. But they do not get the token in the response. Can you please investigate?
{"date":"Tue
Aug 28 17:15:52 PDT
2018","headers":{"Cache-Control":["no-cache"],"Server":["Microsoft-IIS/7.5"],"X-App-Id":["Custom.RestApi"],"X-Request-Execution-Correlation-Id":["76223af6-8946-4e9d-ad12-59189599a7d7"],"Expires":["-1"],"Pragma":["no-cache"],"Content-Length":["403"],"X-App-Version":["12.1.509.64"],"Date":["Wed,
29 Aug 2018 00:15:52
GMT"],"Content-Type":["application/json;
charset=utf-8"]},"metadata":{"Cache-Control":["no-cache"],"Server":["Microsoft-IIS/7.5"],"X-App-Id":["Custom.RestApi"],"X-Request-Execution-Correlation-Id":["76223af6-8946-4e9d-ad12-59189599a7d7"],"Expires":["-1"],"Pragma":["no-cache"],"Content-Length":["403"],"X-App-Version":["12.1.509.64"],"Date":["Wed,
29 Aug 2018 00:15:52
GMT"],"Content-Type":["application/json;
charset=utf-8"]},"statusInfo":"OK","stringHeaders":{"Cache-Control":["no-cache"],"Server":["Microsoft-IIS/7.5"],"X-App-Id":["Custom.RestApi"],"X-Request-Execution-Correlation-Id":["76223af6-8946-4e9d-ad12-59189599a7d7"],"Expires":["-1"],"Pragma":["no-cache"],"Content-Length":["403"],"X-App-Version":["12.1.509.64"],"Date":["Wed,
29 Aug 2018 00:15:52
GMT"],"Content-Type":["application/json;
charset=utf-8"]},"length":403,"mediaType":"application/json;charset=utf-8","cookies":{},"closed":false,"links":[],"allowedMethods":[],"properties":{"com.ebayinc.platform.jaxrs.client.resilience.api.ServiceConfiguration":{"serviceGroup":"reuters"},"CALLTRANSACTION":{},"com.ebayinc.platform.jaxrs.client.resilience.core.ResilientServiceContext":{},"ClientId":"reuters"},"status":200}
Best Answer
-
The message shown above is the header of the response message and at the end, it shows "status":200 which means the request was successful. The returned authentication token should be in the body part of the response message, not in the header.
Please ask the custom try to run the simple Java Authentication test program as Christiaan suggested, or use Postman to test the token request message as shown in the Portal tutorials.
0
Answers
-
we have Java code examples available in our downloads, they are described in this document. For token retrieval there are 3 samples:
- A simple one
- One that goes through a proxy
- One for use with a proxy that requires authentication.
I suggest you ask your customer to try to run one of these (the one that fits his network access).
If it works, then he has functional code he can use in his project.
If it does not work, then he has a different issue which would require further investigation (in which case we'd need his code to investigate in depth).
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 623 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 688 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 91 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛