I am unable to authenticate a PlatformSession using the Refinitiv.Data libraries (v1.0.0-beta2) for .NET when trying to use GrantRefreshToken grant type.
session = PlatformSession.Definition().AppKey(appKey) .OAuthGrantType(new GrantRefreshToken().UserName(username).RefreshToken(refreshToken)) .TakeSignonControl(true) .GetSession();
Response when trying to open a session using the above
{PlatformSession (Cloud)} [Refinitiv.Data.Core.PlatformSessionCore]: {PlatformSession (Cloud)} LastEventCode: SessionAuthenticationFailed LastEventMessage: { "ExceptionType": "System.NotSupportedException", "Message": "PlatformSession (Cloud) authorization using grant GrantRefreshToken {\r\n\t\tUser: raymond.tieu@refinitiv.com\r\n\t\tRefresh Token: 914d1286-2bcb-4719-8bd8-c872bf3880ca\r\n\t} not supported." } OpenState: Closed
I have tried passing a refresh token obtained from https://sts.login.cp.thomsonreuters.net/oauth2/v1/token after getting the access/refresh tokens using my username and password.
I am able to authenticate a session when using the GrantPassword grant type. Is the GrantRefreshToken implemented in the .NET libraries?