Login
OAuth
To log in on HxDR, please follow the AWS Cognito OAuth guide (opens in a new tab). As a developer you will receive the required data from the HxDR team to perform a login.
JWT
Once logged in, the JWT needs to be retrieved as described here (opens in a new tab).
Using the example from above, a response would look like this:
HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token":"eyJz9sdfsdfsdfsd",
"refresh_token":"dn43ud8uj32nk2je",
"id_token":"dmcxd329ujdmkemkd349r",
"token_type":"Bearer",
"expires_in":3600
}
Important are the token_type
and the access_token
. They need to be combined, as shown below, to access the platform:
HTTP Request Header:
{
"authorization": "Bearer [ACCESS_TOKEN]"
}
{
"authorization": "Bearer eyJz9sdfsdfsdfsd"
}
To sucessful execute any GraphQL (opens in a new tab) query and/or mutation, the authorization
key needs to be present in every request.
Related Pages
JS-SDK reference
Auth
Identity authentication
Account
Account Services