Adding another device
Lets assume John wants to add another device (JohnDeviceB) from which he can control his identity operations. Adding such device is as simple as giving it the desired capability(forward, device manager, admin or proxy). The next diagram shows what is the flow to achieve that:
As shown in the prevous diagram, a new device has been added on behalf of John.
-
Only "deviceManager" granted roles can authorize other devices.
-
Because "device B" has "deviceManager" capability then it can grant any authorization level on behalf of John.
-
Removing a device is similar to the adding process. The difference lies in the argument time, that is set a time less than the current time. For more information please check the setCap method in the IdentityManager contract.