A skeletal implementation of a service provider, providing protected
resources to requests from authorized consumers.
This class implements the logic to check requests for authorization.
You can use it with your web server or web framework to protect certain
resources with OAuth.
|
__init__(self,
signature_methods=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
add_signature_method(self,
signature_method) |
source code
|
|
|
verify_request(self,
request,
consumer,
token)
Verifies an api call and checks all the parameters. |
source code
|
|
|
build_authenticate_header(self,
realm='
' )
Optional support for the authenticate header. |
source code
|
|
|
_get_version(self,
request)
Verify the correct version request for this server. |
source code
|
|
|
_get_signature_method(self,
request)
Figure out the signature with some defaults. |
source code
|
|
|
|
|
_check_signature(self,
request,
consumer,
token) |
source code
|
|
|
_check_timestamp(self,
timestamp)
Verify that timestamp is recentish. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|