7digital-python.lib.oauth.OAuthServer Class Reference
Inheritance diagram for 7digital-python.lib.oauth.OAuthServer:
Inheritance graph
Collaboration diagram for 7digital-python.lib.oauth.OAuthServer:
Collaboration graph

Public Member Functions

def __init__ (self, data_store=None, signature_methods=None)
 
def set_data_store (self, data_store)
 
def get_data_store (self)
 
def add_signature_method (self, signature_method)
 
def fetch_request_token (self, oauth_request)
 
def fetch_access_token (self, oauth_request)
 
def verify_request (self, oauth_request)
 
def authorize_token (self, token, user)
 
def get_callback (self, oauth_request)
 
def build_authenticate_header (self, realm='')
 
def __init__ (self, data_store=None, signature_methods=None)
 
def set_data_store (self, data_store)
 
def get_data_store (self)
 
def add_signature_method (self, signature_method)
 
def fetch_request_token (self, oauth_request)
 
def fetch_access_token (self, oauth_request)
 
def verify_request (self, oauth_request)
 
def authorize_token (self, token, user)
 
def get_callback (self, oauth_request)
 
def build_authenticate_header (self, realm='')
 

Static Public Attributes

int timestamp_threshold = 300
 
 version = VERSION
 
 signature_methods = None
 
 data_store = None
 

Private Member Functions

def _get_version (self, oauth_request)
 
def _get_signature_method (self, oauth_request)
 
def _get_consumer (self, oauth_request)
 
def _get_token (self, oauth_request, token_type='access')
 
def _get_verifier (self, oauth_request)
 
def _check_signature (self, oauth_request, consumer, token)
 
def _check_timestamp (self, timestamp)
 
def _check_nonce (self, consumer, token, nonce)
 
def _get_version (self, oauth_request)
 
def _get_signature_method (self, oauth_request)
 
def _get_consumer (self, oauth_request)
 
def _get_token (self, oauth_request, token_type='access')
 
def _get_verifier (self, oauth_request)
 
def _check_signature (self, oauth_request, consumer, token)
 
def _check_timestamp (self, timestamp)
 
def _check_nonce (self, consumer, token, nonce)
 

Detailed Description

A worker to check the validity of a request against a data store.

Definition at line 371 of file musixmatch-master/7digital-python/lib/oauth.py.

Constructor & Destructor Documentation

def 7digital-python.lib.oauth.OAuthServer.__init__ (   self,
  data_store = None,
  signature_methods = None 
)
def 7digital-python.lib.oauth.OAuthServer.__init__ (   self,
  data_store = None,
  signature_methods = None 
)

Definition at line 378 of file Yading/7digital-python/lib/oauth.py.

Member Function Documentation

def 7digital-python.lib.oauth.OAuthServer._check_nonce (   self,
  consumer,
  token,
  nonce 
)
private
def 7digital-python.lib.oauth.OAuthServer._check_nonce (   self,
  consumer,
  token,
  nonce 
)
private
Verify that the nonce is uniqueish.

Definition at line 525 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._check_signature (   self,
  oauth_request,
  consumer,
  token 
)
private

Definition at line 496 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._check_timestamp (   self,
  timestamp 
)
private
Verify that timestamp is recentish.

Definition at line 515 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._check_timestamp (   self,
  timestamp 
)
private
def 7digital-python.lib.oauth.OAuthServer._get_consumer (   self,
  oauth_request 
)
private

Definition at line 478 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._get_signature_method (   self,
  oauth_request 
)
private
Figure out the signature with some defaults.

Definition at line 461 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._get_signature_method (   self,
  oauth_request 
)
private
def 7digital-python.lib.oauth.OAuthServer._get_token (   self,
  oauth_request,
  token_type = 'access' 
)
private
def 7digital-python.lib.oauth.OAuthServer._get_token (   self,
  oauth_request,
  token_type = 'access' 
)
private
Try to find the token for the provided request token key.

Definition at line 485 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._get_verifier (   self,
  oauth_request 
)
private
def 7digital-python.lib.oauth.OAuthServer._get_verifier (   self,
  oauth_request 
)
private

Definition at line 493 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer._get_version (   self,
  oauth_request 
)
private
def 7digital-python.lib.oauth.OAuthServer._get_version (   self,
  oauth_request 
)
private
Verify the correct version request for this server.

Definition at line 451 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.add_signature_method (   self,
  signature_method 
)
def 7digital-python.lib.oauth.OAuthServer.add_signature_method (   self,
  signature_method 
)

Definition at line 388 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.authorize_token (   self,
  token,
  user 
)
Authorize a request token.

Definition at line 439 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.authorize_token (   self,
  token,
  user 
)
Authorize a request token.

Definition at line 439 of file musixmatch-master/7digital-python/lib/oauth.py.

Referenced by 7digital-python.lib.oauth.OAuthServer.authorize_token().

def 7digital-python.lib.oauth.OAuthServer.build_authenticate_header (   self,
  realm = '' 
)
Optional support for the authenticate header.

Definition at line 447 of file musixmatch-master/7digital-python/lib/oauth.py.

Referenced by 7digital-python.lib.oauth.OAuthServer.build_authenticate_header().

def 7digital-python.lib.oauth.OAuthServer.build_authenticate_header (   self,
  realm = '' 
)
Optional support for the authenticate header.

Definition at line 447 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.fetch_access_token (   self,
  oauth_request 
)
Processes an access_token request and returns the
access token on success.

Definition at line 412 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.fetch_access_token (   self,
  oauth_request 
)
Processes an access_token request and returns the
access token on success.

Definition at line 412 of file musixmatch-master/7digital-python/lib/oauth.py.

Referenced by 7digital-python.lib.oauth.OAuthServer.fetch_access_token().

def 7digital-python.lib.oauth.OAuthServer.fetch_request_token (   self,
  oauth_request 
)
Processes a request_token request and returns the
request token on success.

Definition at line 392 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.fetch_request_token (   self,
  oauth_request 
)
Processes a request_token request and returns the
request token on success.

Definition at line 392 of file musixmatch-master/7digital-python/lib/oauth.py.

Referenced by 7digital-python.lib.oauth.OAuthServer.fetch_request_token().

def 7digital-python.lib.oauth.OAuthServer.get_callback (   self,
  oauth_request 
)
def 7digital-python.lib.oauth.OAuthServer.get_callback (   self,
  oauth_request 
)
Get the callback URL.

Definition at line 443 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.get_data_store (   self)

Definition at line 385 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.get_data_store (   self)
def 7digital-python.lib.oauth.OAuthServer.set_data_store (   self,
  data_store 
)

Definition at line 382 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.set_data_store (   self,
  data_store 
)
def 7digital-python.lib.oauth.OAuthServer.verify_request (   self,
  oauth_request 
)
Verifies an api call and checks all the parameters.

Definition at line 428 of file Yading/7digital-python/lib/oauth.py.

def 7digital-python.lib.oauth.OAuthServer.verify_request (   self,
  oauth_request 
)
Verifies an api call and checks all the parameters.

Definition at line 428 of file musixmatch-master/7digital-python/lib/oauth.py.

Referenced by 7digital-python.lib.oauth.OAuthServer.verify_request().

Field Documentation

int 7digital-python.lib.oauth.OAuthServer.timestamp_threshold = 300
static
7digital-python.lib.oauth.OAuthServer.version = VERSION
static

The documentation for this class was generated from the following file: