ux4iot-admin-node
The Node Admin SDK can be found on GitHub.
First, add the dependency:
Initialize the SDK using the connection string. You can retrieve the connection string from the Azure portal.
Now you can whitelist grant requests using:
Usually, the grantRequest
will be exactly identical to the body received by the custom security backend. In the security backend, you merely decide which grant requests to forward and which not to forward.
If you want to revoke the grant at a later point in time, you can do this using:
You can revoke all grants for a session with this:
You can even revoke all sessions:
Last updated