How twocanoes/xcreds works
Project type and purpose
• XCreds is a macOS-specific, full-stack authentication/synchronization solution. It replaces the native login window with a custom Security Agent (“XCreds Login”) to authenticate against a cloud OIDC provider (Azure/Google), then syncs that cloud password back down into the local macOS account and user keychain. A companion app (“XCreds App”) runs in user space after log in to refresh tokens and re-sync passwords. Additional components include a Safari-style AutoFill extension and a low-level “tap” driver for token sessions.
File structure
• Top-level targets and directories
• XCredsLoginPlugIn – the Security Agent plugin run by macOS at login
• XCreds Login Overlay – a helper that provides a custom overlay UI in the login window
• XCreds – the user-space macOS status-menu app and login-item that performs ongoing sync
• XCreds AutoFill Extension – a Credential Provider extension for iOS/macOS autofill
• tap – a system extension/driver implementing TokenSession and hardware interfaces
• authrights, auth_mech_fixup, scripts – helper CLI tools for automation, testing, and entitlement adjustments
• Shared – code and utilities common to multiple components (AuthRightsHelper, Tokens, ManagedPreferences)
• build_resources, scripts, build.sh – packaging, build-and-release infrastructure
README for additional insights
• The README describes the two high-level runtime components (Login agent + App), their use of OIDC, token storage in the login keychain, syncing of local password, and requirement to support MFA.