Webtool for checking the latest logins for an intune bound device with the device's name.
A web application designed for the purpose of fetching the latest logins for example a shared device.
Made this, because there didn't seem to be a black and white way of doing it, considering the Graph API from Microsoft is still in developement.
And there is linux compatability (made because of pm2!)... crazy!
Module installation
npm install
Modules used: @azure/identity @microsoft/microsoft-graph-client isomorphic-fetch express pm2
Token authentication
- auth.js allows basic token authentication directly from the URL (e.g: ?token=abc123456def)
ACCESS_TOKEN
Client-, tenant- and secret key
- appSettings.js requires app identifiers in order to function
clientId, tenantId, clientSecret
Request timeout and length of request
- graph.js contains timeout and minimum length variables
COOLDOWN_TIME, MINIMUM_LENGTH
Add your client and tenant IDs and client secret to appSettings.js.
Run node index.js to launch server to port 1869.