Change user-login callback to capture custom authentication schemes

Fix #434, related to #501