added authentication mechanisms for authentication controller and Api::V1::ApplicationController