mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 20:53:06 +00:00
20e93aa892
Adds a second device validation method alongside existing Autopilot Device Validation. Corporate Identifier Validation checks devices against Intune Corporate Device Identifiers (manufacturer + model + serial number) via the Graph beta searchExistingIdentities endpoint. Backend: Extract GraphTokenService from AutopilotDeviceValidator for shared token/consent logic. Add CorporateIdentifierValidator with caching. Update SecurityValidator with cascading validation (Autopilot first, Corporate Identifier fallback). Wire new validator through all agent endpoints. Frontend: Add second toggle in settings gated behind preview mode. Shared consent flow skips redirect when consent already exists from other toggle. Section renamed to "Enrollment Device Validation" in preview mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>