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:
But we are not able to refresh token using that URL.
In the documentation at:
It uses a URL that does not work at all:
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.
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.