intridea/grape — pull request #703 by dspaeth-faber (2014-07-30 15:24:29+00:00)
Title: Make auth middleware extendable

Hi,

this PR is a probosal of mine how auth middleware can be extented by the grape user.
If it might be usefull I would finalize this draft with spec's and a DSL extenstion.

What I have in mind is at the end some thing like this:

```ruby

class MyAPI < Grape::API
register_auth :my_digester, MyAuthMiddleWareClass, ->(settings) { [settings[:a], settings[:b]]}

auth :my_digester, a: "1", b: "2" do |..., ... |

end
end

```