WIP: authn changes

This is *not* ready to be merged.