Package restkit :: Module filters :: Class OAuthFilter
[hide private]

Class OAuthFilter

source code

object --+
         |
        OAuthFilter

oauth filter

Instance Methods [hide private]
 
__init__(self, path, consumer, token=None, method=None, realm='')
Init OAuthFilter
source code
 
on_path(self, request) source code
 
on_request(self, request) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path, consumer, token=None, method=None, realm='')
(Constructor)

source code 

Init OAuthFilter

:param path: path or regexp. * mean all path on wicth oauth can be applied. :param consumer: oauth consumer, instance of oauth2.Consumer :param token: oauth token, instance of oauth2.Token :param method: oauth signature method

token and method signature are optionnals. Consumer should be an instance of `oauth2.Consumer`, token an instance of `oauth2.Toke` signature method an instance of `oauth2.SignatureMethod`.

Overrides: object.__init__