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."
}
Best Answer
-
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.
0
Answers
-
Better still, I would advise you ro try out the latest Service Discovery python sample provided.
0 -
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?
0 -
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.
0 -
@Gurpreet , using the production endpoint works.Thanks
I'll look into service discovery.
0 -
Next, the Login message doesn't work:
Connecting to WebSocket wss://contrib-ws1-emea1.uat.platform.refinitiv.com:443/WebSocket ...
WebSocket successfully connected!
SENT:
{
"Domain":"Login",
"ID":1,
"Key":{
"Elements":{
"ApplicationId":"256",
"AuthenticationToken":"<Censored>",
"Position":"127.0.1.1/<machine-name>"
},
"NameType":"AuthnToken"
}
RECEIVED:
[
{
"Domain":"Login",
"ID":1,
"Private":true,
"State":{
"Code":"NotEntitled",
"Data":"Suspect",
"Stream":"Closed",
"Text":"Authentication unsuccessful"
},
"Type":"Status"
}
]Still using the code from the example mentioned above.
Is this not the right server to reach UAT?
0 -
0
-
What do I need to do to get that ID, and where does the ID fit here?
0 -
For contributions, follow this tutorial - https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api/tutorials#contributing-data-to-refinitiv-contributions-channel
Your ID will have to be permissioned for contributions. Your Refinitiv account manager can do that.
0 -
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.
0 -
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.
0 -
Thanks0
-
@m.rodriguesdossantosHi
Sure - for UAT contributions you will need to auth against the PPE Auth endpoint.
Once authenticated, you can contribute to the uat contrib endpoint.
0 -
Thanks0
-
@m.rodriguesdossantosHi
I should mention, they may not give you a new ID, they may just be able to permission 1 or both of your existing IDs for UAT access.
0 -
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
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 724 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛