Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: small changes in parameter - and header clarificiation.

...

Provide the username and password of your 3DM account. If , if your password contains special characters these should be URL encoded. The grant_type for default requests is 'password, ' (to refresh an access token; see Refresh OAUTH token). The client_id and client_secret will be provided by Bio-Prodict separately.

The token request needs to contain an authorization header in the form of 'Authorization: Basic : {"Authorization":  "Basic {client_details}' with "}, in which client_details being the is a base64 encoded string of the client_id a colon (as key) and the client_secret without a trailing newline. Example response(as value), e.g. "{client_id}:{client_secret}". Make sure that no trailing newlines are included.

The response will look like the example below:

Code Block
titleToken Request Response
{
    "access_token": "{token}",
    "expires_in": 43199,
    "fullname": "{fullname}",
    "jti": "396f89d8-92d2-4211-9fe7-b4db82a4e691",
    "scope": "read write",
    "token_type": "bearer",
    "userid": {userid},
    "username": "{username}"
}

...