Grigory and Benjamin show how to use AI, in this case - Github Copilot, to develop quickly a DRM Entitlement Service. Not only AI helps to generate the code, but also to cover the code with unit tests, generate documentation and check the implementation against the security best practices.
00:00 Introduction
07:33 Bootstrap a solution for Node.js and Express
12:01 Create the main endpoint: /entitlement
14:30 Sign the entitlement token following Axinom DRM rules
23:26 Extract secrets from code into environment variables (.env)
28:05 Simulate a content database and resolve a contentID to a keyID
36:12 Protect /entitlement with user authentication
40:28 Refactor implementation by using middleware
44:19 Bind the entitlement token to the userID (part 1)
45:32 Test the endpoint with a user token - generate a test token and use VSCode REST Client
49:51 Bind the entitlement token to the userID (part 2)
52:50 Geo blocking - considering user's country based on their IP-address
01:07:37 Unit tests coverage
01:18:22 Review our solution against security best practices
01:27:51 Conclusion & recap
Axinom DRM: https://axinom.com/products/drm
#DRM #ai #contentprotection #copilot