require and permit are rails 4 stuff (they aren't used for us since params does not respond_to permit). I just included them because they were there in the Doorkeeper controller, but I could take them out.