Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /
avatar image
Question by johan.lundquist · Oct 02, 2018 at 03:59 AM · websocketwebsockets api

How to set up the Python Market Price Authentication - global default variables?

Hi,

I would like to test the Market Price Authentication example but I don't know how to configure below global default variables? Can I by examlpe use DACS as authentication server, or else?

# Global Default Variables
app_id = '555'
auth_hostname = '127.0.0.1'
auth_port = '8443'
hostname = '127.0.0.1'
password = ''
position = socket.gethostbyname(socket.gethostname())
token = ''
user = ''
port = '15000'

Kind regards,

Johan

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by wasin.waeosri · Oct 02, 2018 at 04:18 AM

Hi @johan.lundquist

Basically, if your ADS server already connects to DACS server and use a DACS user directly, you can use a market_price.py application to test authentication feature. Like @julien.dominici answer above, you can just input your valid DACS user credential via a JSON login message as shown below:

{
  "Domain":"Login",
  "ID":1,
  "Key":{
    "Elements":{
      "ApplicationId":"256",
      "Position":"127.0.0.1"
    },
    "Name":"<DACS User>"
  }
}

Please be informed that the market_price_authentication.py application is for Token-Based deployment scenario only. In a token-based model, the client-side application obtains a token (typically a random string2), generated by a token generator (Authentication server which you need to specify via auth_hostname/auth_port variables) based on the user’s credentials. The token is passed to the ADH/ADS, at which point the ADH/ADS makes a call out to the local token authenticator for verification.

The Token-Based deployment diagram is following:


token-base.png (74.2 KiB)
Comment
julien.dominici
johan.lundquist

People who like this

2 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by julien.dominici · Oct 02, 2018 at 04:04 AM

Hi Johan,

If I am correct, it should be the ADS that runs the WS API which will forward your credentials (user, appId, position) to the DACS server, in the example you only need to ensure that your are passing valid credentials (existing DACS user with permission) to the ADS into the login request.

Regards,

Julien

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by johan.lundquist · Oct 02, 2018 at 04:46 AM

Thank you for the clarification with regards to the Token-Based deployment.

Kind regards,

Johan

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

Not getting rate update message from Websocket Api java example after approx 9 minutes (using git web socket example)

WebSocket API Status Stream is Closed. what should be recovery logic ?

WebSocket API "Connection is already closed"

WebSocket API channel disconnects with batch request

How do i get notified of API Changes?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges