How ethanzer0/facelogin works
FaceLogin provides Windows camera-based face authentication for lock-screen sign-in, plus an enrollment console and graphical installer. The principal path is lock-screen authentication through the service: the service captures and analyzes a face, applies pose/liveness checks, matches enrolled data, and returns credentials over a named pipe. The console enrolls and manages faces and communicates with the service; the installer handles setup and removal. Several implementation details, including credential-provider and credential-store sources, are absent from the supplied tree, so those links are not expanded.
Main entry points: FaceService.cpp Face service · EnrollmentWizard.cpp Enrollment and management · webcam_capture.cpp Camera capture · main.cpp Console entry point
Components 20
Authentication service
- Face service
face_service/FaceService.cpp - Named-pipe server
face_service/pipe_server.cpp - Camera capture
face_service/webcam_capture.cpp - DirectShow fallback
face_service/webcam_capture_dshow.cpp - SCRFD detection
face_service/onnx_models.h - 106-point landmarks
face_service/landmark_detector.cpp - Face recognition
face_service/onnx_models.h - Pose and liveness
face_service/liveness_detector.cpp
Enrollment console
- Console entry point
enrollment_app/main.cpp - Enrollment and management
enrollment_app/EnrollmentWizard.cpp - Camera preview
enrollment_app/CameraPreview.cpp - WebView host
enrollment_app/WebviewHost.cpp
Shared runtime
- Enrolled face data
- Runtime configuration
common/config_util.h - DPAPI utilities
common/dpapi_util.cpp - IPC protocol
common/ipc_protocol.cpp
Installer
- Installer interface
installer/FaceLoginSetup/frontend/src/App.vue - Installer backend
installer/FaceLoginSetup/app.go - Install operations
installer/FaceLoginSetup/internal
Other components
- Windows lock screen
Connections 22
- Windows lock screen → Face service: requests authentication
README.md - Face service → Named-pipe server: handles requests
- Face service → Camera capture: captures frames
- Face service → DirectShow fallback: falls back
face_service/FaceService.cpp - Face service → SCRFD detection: detects faces
- Face service → 106-point landmarks: extracts landmarks
- Face service → Face recognition: matches faces
- Face service → Pose and liveness: checks liveness
face_service/FaceService.cpp - Face service → Enrolled face data: matches enrolled data
README.md - Face service → Runtime configuration: loads settings
face_service/FaceService.cpp - Face service → IPC protocol: uses protocol
face_service/FaceService.cpp - Console entry point → Enrollment and management: creates wizard
enrollment_app/main.cpp - Console entry point → WebView host: creates host
enrollment_app/main.cpp - Enrollment and management → Camera capture: uses capture
- Enrollment and management → SCRFD detection: loads models
enrollment_app/EnrollmentWizard.cpp - Enrollment and management → 106-point landmarks: loads models
enrollment_app/EnrollmentWizard.cpp - Enrollment and management → Enrolled face data: saves enrollment
enrollment_app/EnrollmentWizard.cpp - Enrollment and management → DPAPI utilities: protects passwords
enrollment_app/EnrollmentWizard.cpp - Enrollment and management → IPC protocol: uses protocol
enrollment_app/EnrollmentWizard.cpp - Camera preview → Camera capture: captures frames
- Installer interface → Installer backend: invokes operations
- Installer backend → Install operations: delegates operations