Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hono-dev] Credentials API Question

Quick question about the device registry API and the credentials API.


The credentials API uniqueness constrain specifies, that the 'auth_id' and 'type' combination is unique in a tenant. So can we assign two credentials of the same type to one device?


Example:


Credentials:

{ "auth_id": "user_1", "type": "password", "device_id" : "device_1" }

{ "auth_id": "user_2", "type": "password", "device_id" : "device_1" } //so uniqueness is ok


Device:

{"device_id" : "device_1" } 


Is my understanding of the spec correct?


Cheers




Back to the top