Add AuthenticationsController#onmiauth
Add AuthenticationsController#authentication

Removing some duplication introducting methods instead of temporary
variables.