Package restkit :: Module oauth2 :: Class Server
[hide private]
[frames] | no frames]

Class Server

source code

object --+
         |
        Server

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.

Instance Methods [hide private]
 
__init__(self, signature_methods=None)
x.__init__(...) initializes x; see help(type(x)) 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
 
_get_verifier(self, request) 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__

Class Variables [hide private]
  timestamp_threshold = 300
  version = '1.0'
  signature_methods = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, signature_methods=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)