Authentication Token related queries

Hello Team,
I have multiple questions regarding Authentication Token part. Please find them below:
1. How we validate that the current/previously requested token is yet valid or not
2. What is the limit of authentication token per day and per minute.
3. Could you please give example of how we can limit authentication token request to not exceed.
Thank you,
Trisha Gehlot
Best Answer
-
Hi @trisha.gehlot,
Once an expired token is used in an API call, the response status code will be HTTP 401 Unauthorized, with the following response message:
{
'error': {
'message': 'Authentication request failed because of invalid token'
}
}0
Answers
-
Hello @trisha.gehlot,
There is a token validation endpoint that you can use - https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/ValidateToken(Token='****')
An OAuth token from DSS service is valid for 24 hours, so the best practice is to store the existing token in a file or environment setting along with the timestamp of when it was retrieved, and then reuse this information for subsequent API calls.
0 -
Hello @Gurpreet, Thank you for your response!!
I am not able to access this link. Is it example link?0 -
Hello @trisha.gehlot,
This link is a part of API reference here, but reading about its documentation - it states that this endpoint has been deprecated and to not use it for new development.
Instead the recommended action seems to be to use a token, and if the existing token is invalid, the app will receive an authorization error. At this point RequestToken method should be used to get a new token.
0 -
For limitations, please check the LSEG DataScope Select Best Practices & Fair Usage Policy guide in the REST API-Specific Limits section.
0 -
@GurpreetHello
Could you please provide more info on this, like what would be the response code for authorization error etc.
0 -
@Gurpreet !!Thanks a lot
Apologies couldn't reply before, as was not well
Also is there any way we can know the expiry time of the token??
0 -
@Jirapongse !!Thank you0
-
Hi @trisha.gehlot,
Your app can timestamp the expiry time (+24HRS) when it receives a new token. It is not explicitly provided by the server.
0 -
@Gurpreet !!Sure, Thank you
that could be one option.
One more question on authentication token, is token associated with userid or Jobs.
For Example, we got a new authentication token while running a job, so do we can reuse the same for another job request or we have to request new token??
0 -
data limits imposed by the product.Token is connected to the user who requested it. Same token can be used for multiple requests, but care must be taken to not breach the0
-
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
- 685 Datastream
- 1.4K DSS
- 616 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
- 252 ETA
- 556 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
- 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
- 652 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
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛