applicake/doorkeeper — pull request #102 by cslew (2012-06-22 03:10:21+00:00)
Title: Not returning 401 when access token generation fails

The issue was with the way authorized is implemented in client_credentials_request, which never evaluates to false when returning an ErrorResponse in tokens_controller.

This may not be the best way to implement this fix. It's probably a good idea to rethink the way token.authorized is implemented.

-@cslew, @shadowsun7