In the mosip-device-service-specification document
it says Device not registered. In this case, the device info will be only base64urlencode(payload)
- The deviceInfo object is sent as JSON Web Token (JWT).
- For a device which is not registered, the deviceInfo will be unsigned.
[
{
"deviceInfo": "base64urlencode(header).base64urlencode(payload).base64urlencode(signature)"
"error": {
"errorCode": "100",
"errorInfo": "Device not registered. In this case, the device info will be only base64urlencode(payload)"
}
}
]
when I tested the not registed DeviceInfo service ( base64 encoded) use thd CTK deployed in my own env。
It tested failed.
when I tested the not registed DeviceInfo service ( not base64 encoded) use thd CTK deployed in my own env。
It tested succeed.
I look into the source code of CTK UI
https://github.com/mosip/mosip-compliance-toolkit-ui
I found it only support not base64 encoded deviceinfo.
the code is in sbi-testcase-service.ts
which is right for the not registed DeviceInfo. Need Base64 Encoded or not???