A PAM plugin for authenticating using:
kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrWatch
API in macOS 10.15kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrCompanion
API in macOS 15 or later.
- The most up to date version of either Xcode or the Xcode command line tools (CLT) for your version of macOS. This includes all of the tools needed to build the module, including
swiftc
,make
, andgit
. If you do not yet have either installed, you should be prompted automatically to install teh CLT when you first try to follow the install instructions. You can also install the CLT manually with the following command:
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/tsdevau/pam_watchid/HEAD/install.sh)"
Tip
You can add the --force
flag to the install command to reinstall the library if it already exists.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/tsdevau/pam_watchid/HEAD/install.sh)" --force
- Run inside a cloned copy of the repo:
make install
- Modify the sudo pam config to include the
pam_watchid.so
module. Using the following line, follow the steps according to your version of macOS.
auth sufficient pam_watchid.so
- On macOS 14 and later: Create/edit
/etc/pam.d/sudo_local
to include it in the list of modules, in order of execution. If you are unsure of the order, place it on the first line. - On macOS 13 and earlier: Edit
/etc/pam.d/sudo
to include it as the first line.
Important
Note that you might have other auth
statements, don't remove them.