Yeah, [```authenticate```](https://github.com/theforeman/foreman/blob/develop/app/controllers/concerns/foreman/controller/authentication.rb#L8) is where I think this actually belongs.