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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 1 2 6

Invalid Application Credentials with Websockets

Using websocket_authentication_argp.py and the credentials provided by the refinitiv team, I tried to connect to UAT and got "Invalid Application Credential".

Have the credentials somehow expired, or did I misunderstand the usage of the credentials?

More details, obtained by running with --debug 7:

Sending authentication request with password to https://api.ppe.refinitiv.com/auth/oauth2/v1/token ...
('https://api.ppe.refinitiv.com/auth/oauth2/v1/token',
{'headers': {'Accept': 'application/json',
'content-type': 'application/x-www-form-urlencoded'}},
{'data': 'grant_type=password&username=GE-A-<censored>&password=<censored>&client_id=GE-A-<censored>&takeExclusiveSignOnControl=true'},
{'auth': ('GE-A-<censored>', '<censored>')},
{'verify': True},
{'allow_redirects': False})
https://api.ppe.refinitiv.com/auth/oauth2/v1/token
grant_type=password&username=GE-A-<censored>&password=<censored>&client_id=GE-A-<censored>&takeExclusiveSignOnControl=true
{'User-Agent': 'python-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'content-type': 'application/x-www-form-urlencoded', 'Content-Length': '152', 'Authorization': 'Basic <censored>'}
RDP-API Gateway authentication HTTP code: 401 Unauthorized
response : {
  
"error":"invalid_client",
"error_description":"Invalid Application Credential."
}
websockets
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.

Upvotes
Accepted
22k 58 14 21

Hi @m.rodriguesdossantos,

You are connecting to ppe endpoint and not the production one at https://api.refinitiv.com:443/auth/oauth2/v1/token. Can you please confirm that you can connect to it and that your credentials are valid on production setup as well.

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.

Hey @Gurpreet ,

I don't want to connect to production yet as I'm in the early stages of development. I want to connect to UAT. Is this not the right endpoint?

The main production endpoints can be used for development as well. I would advise you to try this and reach out to your account manager if it still doesn't work.

Also, use the Service Discovery example listed in other response.

Thanks @Gurpreet , using the production endpoint works.

I'll look into service discovery.


Show more comments
Upvotes
22k 58 14 21

Better still, I would advise you ro try out the latest Service Discovery python sample provided.

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.

Upvotes
25.3k 87 12 25

Hi @m.rodriguesdossantos

I have been advised that there is no UAT MachineID associated with your account.

contrib-ws1-emea1.uat.platform.refinitiv.com is a UAT endpoint

If you want to contribute to UAT - you will need to ask your Refinitiv account team to provide you with a MachineID which has been configured for UAT access.

Just to be clear, there is a UAT authentication endpoint and UAT Contribution endpoints - based on my understanding of your most recent posts, you are:

Authenticating against the Production Auth gateway, but then trying to contribute to a UAT Contribution endpoint.


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.

Hey, thanks!

Indeed, it seems that there was a lot of confusion so far.

Let me know if the following makes sense as next steps then

1. Ask my account manager for my ID for UAT.

2. Use https://api.ppe.refinitiv.com/auth/oauth2/v1/token to obtain the auth token.

3. Use contrib-ws1-emea1.uat.platform.refinitiv.com for contribution.

Hi @m.rodriguesdossantos


Sure - for UAT contributions you will need to auth against the PPE Auth endpoint.

Once authenticated, you can contribute to the uat contrib endpoint.



Upvote
25.3k 87 12 25

Hi @m.rodriguesdossantos

I understand that the RCC Team has created UAT credentials for you and you should receive them soon from your Refintiv account rep.

Please use them with the following endpoints:

Auth Gateway - https://api.ppe.refinitiv.com/auth/oauth2/v1/token

RCC - contrib-ws1-emea1.uat.platform.refinitiv.com


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.