applicake/doorkeeper — pull request #89 by felipeelias (2012-05-20 19:24:08+00:00)
Title: Credentials order configuration

Change the way client credentials are retrieved from the request object (discussed on #31)

By default it retrieves first from `HTTP_AUTHORIZATION` header and fallsback to `:client_id` and `:client_secret` from `params` object

Defaults:

```ruby
Doorkeeper.configure
client_credentials :from_basic, :from_params
end
```

The order can be changed. The option also can be anything that responds to `call`. You can use a `lambda` for example:

```ruby
client_credentials lambda { |request| 'do something with request and return uid/secret' }
```