Getting auth token - how to fill request
I keep trying to load API token from that URL https://api.refinitiv.com/auth/oauth2/v2/token using Postman application. I've tried to follow the documentation from Swagger and this is how I filled the required fields:
Unfortunately, the result is:
{
"error": "invalid_client",
"error_description": "client_id value doesn't match HTTP Basic username value"
}
I've tried also to provide username/password within body or tried to pass Authorization header with base64 username/password but with no effects. Then the error was:
{
"error": "invalid_client",
"error_description": "Invalid client or client credentials."
}
I need that token to be able within new application to authenticate user to be allowed to load data from Refinitiv API. But, perhaps there is a better solution for authenticate user within app, then I would be grateful for information. I build that application using React and ELF library.
@Edit: So far I got a token, but with that URL: https://api.refinitiv.com/auth/oauth2/v1/token ("v1" instead of "v2" within the URL above) and credentials like that:
Actually I got the token (first success;), but when I tried to get Business Summary from that URL: https://api.refinitiv.com/user-framework/mobile/overview-service/v1/corp/business-summary/IBM.N then that token didn't work (perhaps because of tle client_id I generated by myself?). I got as a result:
{
"error": {
"id": "33dc2c29-5385-46e6-9c30-3cb15fc52ac6",
"code": "insufficient_scope",
"message": "access denied. Scopes required to access the resource: [trapi.user-framework.workspace.crud]. Missing scopes: [trapi.user-framework.workspace.crud]",
"status": "Forbidden"
}
}
Best Answer
-
Hello @marcin.cholewka,
Did you have a chance to test with Authentication-> Get Access Token request that is included in RDP Postman Starter Collection and Tutorial Samples example deck?
You appear to be missing a couple of required parameters in your Get Token request, this is why I am asking.
Client ID should be generated by yourself, check-marked as "EDP". Please see Quickstart guide for Refinitiv Data Platform for more information on getting started with RDP integration, including client ID requirement.
Additionally, your user id should be permissioned for the RDP service being requested from. The result of Get Acces Token should include the valid token and on it, please examine stanza "scopes" to see if the scope that is required "trapi.user-framework.workspace.crud" is also permissioned to your user id.
I hope this information helps.
0
Answers
-
Thank you for your answer. Finally I got required permission and I am able now to load the Business Summary data. Anyway, I am still not able to make an authentication request using v2 API.
Yes, I made sample Postman authentication request on that RDP collection, but the URL was https://api.refinitiv.com/auth/oauth2/v1/token, not v2. Is maybe any differences between them?
0 -
@marcin.cholewka ,Hello
Please use v1 of Auth at present, I do not believe v2 is officially released yet, from what I know, it still undergoes testing.
0 -
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 WebSocket API
- 37 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
- 275 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
- 629 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛