For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
4 0 0 2

Refresh Token URL?

In the sample application... EDP_AWS_examples\CSharp\MarketPriceEdpGwAuthenticationExample

(this is for Elektron Real Time in the Cloud)

Does anyone know what to use for the variable _hostName ??

We can get a full authentication using:

https://api.edp.thomsonreuters.com/auth/oauth2/beta1/token

and

https://api.refinitiv.com/auth/oauth2/beta1/token

But we are not able to refresh token using that URL.

In the documentation at:

https://developers.refinitiv.com/sites/default/files/ERT_Cloud_20.pdf

It uses a URL that does not work at all:

api.refinitiv.com/oauth2/beta1/token

We are simply trying to get the Authentication token and then get the Refresh Token to work.

We can get the Authentication token to work, but not the Refresh token.

Has anyone had success with getting the Refresh Token to work? If so, that code/URL would be helpful.

Any help would be appreciated.

refinitiv-realtimetreprdp-apiwebsocketsrrto
icon clock
10 |1500

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

1 Answer

Upvote
Accepted
11.5k 16 7 10

Hi @pkosakowski

The API URL to get authentication (first login) and refresh token (later login) are the same https://api.refinitiv.com/auth/oauth2/<version>/token URL. The current version is v1 (https://api.refinitiv.com/auth/oauth2/v1/token).

The application needs to send username, password, client_id and "grant_type=password" for the first authentication request. The API will returns access_token (use for login to ERT in Cloud), refresh_token (use for periodically refresh the access_token) and expire_in data to the application.

The application can refresh the access_token by sending username, refresh_token, client_id and "grant_type=refresh_token" to the same URL.

icon clock
10 |1500

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

Click below to post an Idea Post Idea