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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
4 1 2 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 512.0 KiB each and 1.0 MiB total.

@pkosakowski

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
24.6k 54 17 14

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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