intridea/oauth2 — pull request #90 by mandrews (2012-02-18 23:23:52+00:00)
Title: Add client credentials grant type

Allows a client to use client_id and client_secret to obtain a non refreshable access token:
http://tools.ietf.org/html/draft-ietf-oauth-v2-23#section-1.3.4

- Defaults to using Basic Auth to encode client_id and client_secret (cc @tonywok)
- Supersedes previous client_credentials [pull request](https://github.com/intridea/oauth2/pull/86)
- Includes 'Additional Headers' [pull request] (https://github.com/intridea/oauth2/pull/88) (cc @rauchy)

Test coverage
master:
428 / 436 LOC (98.17%) covered.
client_credentials_basic_auth:
481 / 489 LOC (98.36%) covered.