MatthewKing / DeviceId

A simple library providing functionality to generate a 'device ID' that can be used to uniquely identify a computer.
MIT License
722 stars 118 forks source link

Device ID on docker container #66

Closed Luigi6821 closed 1 year ago

Luigi6821 commented 1 year ago

Hi, I have a question about docker container in particular running on azure. I am using DeviceId library to have a unque ID for generating license for customer that want to use our company software. I experienced that on any container creation (and it is also correct) the DeviceID changes and therefore license become invalid. When running docker hosted in azure could be useful to get the Azure tenantId of the current running subscription. In general I would like to have a unique ID when running docker even after having built a new container.

Any suggestion? Thanks in advance

MatthewKing commented 1 year ago

Yes, you can implement your own custom IDeviceIdComponent to use whatever info the app can access. There are no Azure-specific components out-of-the-box, though, so you will have to implement your own.

Luigi6821 commented 1 year ago

Yes, you can implement your own custom IDeviceIdComponent to use whatever info the app can access. There are no Azure-specific components out-of-the-box, though, so you will have to implement your own.

I thought there was something already or in development.. Thanks anyway

greendimka commented 1 year ago

@Luigi6821, probably this issue can be closed.

Luigi6821 commented 1 year ago

Yes thanks.