Adjusted AuthenticationHandler configuration to heroku middleware stack.