Authn changes

Fixes #260