Update keymanager auth to interact with webapp v2 (Closes #5120).