MythTV  0.26-pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Static Public Attributes | Private Member Functions
nv_python_libs.vimeo.oauth.oauth_api.OAuthServer Class Reference

List of all members.

Public Member Functions

def __init__
def set_data_store
def get_data_store
def add_signature_method
def fetch_request_token
def fetch_access_token
def verify_request
def authorize_token
def get_callback
def build_authenticate_header

Static Public Attributes

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

Private Member Functions

def _get_version
def _get_signature_method
def _get_consumer
def _get_token
def _get_verifier
def _check_signature
def _check_timestamp
def _check_nonce

Detailed Description

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

Definition at line 368 of file oauth_api.py.


Constructor & Destructor Documentation

def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer.__init__ (   self,
  data_store = None,
  signature_methods = None 
)

Definition at line 375 of file oauth_api.py.


Member Function Documentation

Definition at line 379 of file oauth_api.py.

Definition at line 382 of file oauth_api.py.

Definition at line 385 of file oauth_api.py.

Processes a request_token request and returns the
request token on success.

Definition at line 389 of file oauth_api.py.

Processes an access_token request and returns the
access token on success.

Definition at line 409 of file oauth_api.py.

Verifies an api call and checks all the parameters.

Definition at line 425 of file oauth_api.py.

Authorize a request token.

Definition at line 436 of file oauth_api.py.

Get the callback URL.

Definition at line 440 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthServer.fetch_request_token().

Optional support for the authenticate header.

Definition at line 444 of file oauth_api.py.

def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._get_version (   self,
  oauth_request 
) [private]
def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._get_signature_method (   self,
  oauth_request 
) [private]
Figure out the signature with some defaults.

Definition at line 458 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._check_signature().

def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._get_consumer (   self,
  oauth_request 
) [private]
def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._get_token (   self,
  oauth_request,
  token_type = 'access' 
) [private]
def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._get_verifier (   self,
  oauth_request 
) [private]
def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._check_signature (   self,
  oauth_request,
  consumer,
  token 
) [private]
def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._check_timestamp (   self,
  timestamp 
) [private]
Verify that timestamp is recentish.

Definition at line 512 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._check_signature().

def nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._check_nonce (   self,
  consumer,
  token,
  nonce 
) [private]
Verify that the nonce is uniqueish.

Definition at line 522 of file oauth_api.py.

Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthServer._check_signature().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends