intridea/grape — pull request #531 by joelvh (2013-12-09 23:12:44+00:00)
Title: Make endpoint and helpers available in auth blocks

These updates make the endpoint instance the context (or "self") for auth blocks such as Basic Authentication and Digest Authentication. It also extends the instance earlier to make helper methods available to Rack middleware. This allows us to authenticate and store info related to authentication as part of the request (e.g. instance variables or environment variables).