Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
avatar image
Question by isanchez · Apr 23, 2021 at 01:24 AM · rdp-apirefinitiv-data-platformauthentication

RDP Authentication Token extends expires_in

Hello,

I Wondering if there is a way to extend the authentication token Im using Java, when I send my credentials to https://api.refinitiv.com/auth/oauth2/v1/token I Got {"access_token": "eyJ0eXAi.", "Refresh_token ":" ee562aa2-a5eb-4531-9b1e-aff92893fcd5 "," expires_in ":" 300 "," scope ":" "," token_type ":" Bearer "}.


We are saving all the messages during the market, and we have a theory when the token expires every 300 seconds, we have an interruption in the streaming data and we lose a few messages during the process to renew the token.


So, with this scenario there is a way to increase the expiration time enought for don´renew the token at least every 4 hours, maybe 8 hous, in case if this are possible.


I know the python file market_price_epgw_service discovery, in wich the session are handled with this methods for update the token if I implement those functions i will lose or interrumpt the streaming data

for at least miliseconds?


Thanks,


People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit-jintamalit · Apr 23, 2021 at 02:15 AM

Hi @isanchez

The stream will not be interrupted if you re-send login message before 300(expire_in) seconds.

The sample code(market_price_epgw_service discovery) performs this process after 270 seconds elapsed. 270 comes from 300 * 90%, this is just an example that the application reserves 10% of the time to re-request access token with refresh token, use the new access token to login on the same stream.

If your application fails to re-send login message(and the server-side also needs to honor it) within 300 seconds, the stream will be disconnected.

Comment
wasin.w
isanchez

People who like this

2 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

RDP Authentication problem with multiple WebSocket sessions on a single user

"Invalid client" error for sub-sequent requests via POST /token from RDP API

What are the differences between a human and a machine account?

RDP API - Tokens

I get a forbiden status when I try tu use RDP requests

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges