Tenant API
Now that we have the Status of the TID and the claimID we can claim the CyberRock token by
Login
The tenant user needs to login the tenant api first
https://tenant-api.sandbox.sandgrain.io
URL: /api/auth/tenantUserlogin
Method: POST
Parameter:
{
"username": "xxx.xxxxx.@sandgrain.eu",
"password": "xxxxxxxxx"
}
Response:
Status 200 OK
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6Ikpfgbwrwbsdfgbsdbg ",
"firstName": "Test First Name",
"lastName": "Test Last Name"
}
Claim ID
https://tenant-api.sandbox.sandgrain.io
URL: /api/tenantApi/claim-token
This endpoint is where the tenant user can claim an ID, updating it from ReadyForHandover (RFH) to AssetOwnedAndActive (AOA).
Method: POST
Header: Bearer {accessToken}
This is the token that generated by calling the login API
Parameter:
{
"claimTokenId": 225b1d67-12d6-45e6-8c5f-03747ac1a854"
}
Response:
Status 200 OK
{
"result": "CLAIMED",
"remainingCredit": 100
}
Once the CyberRock Token has been claimed it has the status of AssetOwnedAndActive (AOA) and is ready to be used for authentications or any other features of the CyberRock Trust Services.
| ← Claim Token Procedure | CyberRock Cloud → |