For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 0

We are leveraging the REST API and we have question with regards to authentication : REST API supports OAuth 2.0?

We are leveraging the REST API. However, there’s a question with regards to authentication – Do you know if the REST API supports OAuth 2.0?

Datascope requires the username & password be stored in the 'Body' payload when we request for an Authentication Token.

This creates a situation where the password is visible while a developer is manually executing this interface. This is highly undesirable as you can imagine.

Per your prior advice (on searching for things in the QA Forum), I found this in the forum but it’s 2 years old.

Is it possible to use OAuth2 specification with DSS? - Forum | Refinitiv Developer Community

Has anything changed?

dss-rest-api
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.

hi @sharath.kumar

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

Hello @sharath.kumar ,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.4k 253 52 74

@sharath.kumar

The DSS client still needs to use the /Authentication/RequestToken endpoint to get a token.

1654157358570.png

The body of the request contains the DSS username and password.

POST https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken HTTP/1.1
Prefer: respond-async
Content-Type: application/json; odata=minimalmetadata
{
    "Credentials": {
        "Username":  "<Your Username>",
        "Password":  "<Your Password>"
    }
}

1654157358570.png (56.3 KiB)
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.