litl/rauth — pull request #17 by xevix (2012-06-14 00:22:35+00:00)
Title: Client credentials

Support the OAuth2 client_credentials grant_type. This one just uses the access_token_url with basic auth to get an access token that gives access to the client's own resources only.

Ex:

from rauth.service import OAuth2Service

# Notice no authorize_url
service = OAuth2Service('name','user','pass','http://server/oauth/access_token','')
data = dict(grant_type = 'client_credentials')
token = service.get_access_token('POST', data=data)