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 |
A worker to check the validity of a request against a data store.
Definition at line 368 of file oauth_api.py.
| 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.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::set_data_store | ( | self, | ||
| data_store | ||||
| ) |
Definition at line 379 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::get_data_store | ( | self | ) |
Definition at line 382 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::add_signature_method | ( | self, | ||
| signature_method | ||||
| ) |
Definition at line 385 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::fetch_request_token | ( | self, | ||
| oauth_request | ||||
| ) |
Processes a request_token request and returns the request token on success.
Definition at line 389 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::fetch_access_token | ( | self, | ||
| oauth_request | ||||
| ) |
Processes an access_token request and returns the access token on success.
Definition at line 409 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::verify_request | ( | self, | ||
| oauth_request | ||||
| ) |
Verifies an api call and checks all the parameters.
Definition at line 425 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::authorize_token | ( | self, | ||
| token, | ||||
| user | ||||
| ) |
Authorize a request token.
Definition at line 436 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::get_callback | ( | self, | ||
| oauth_request | ||||
| ) |
Get the callback URL.
Definition at line 440 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::build_authenticate_header | ( | self, | ||
realm = '' | ||||
| ) |
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] |
Verify the correct version request for this server.
Definition at line 448 of file oauth_api.py.
| 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.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::_get_consumer | ( | self, | ||
| oauth_request | ||||
| ) | [private] |
Definition at line 475 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::_get_token | ( | self, | ||
| oauth_request, | ||||
token_type = 'access' | ||||
| ) | [private] |
Try to find the token for the provided request token key.
Definition at line 482 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::_get_verifier | ( | self, | ||
| oauth_request | ||||
| ) | [private] |
Definition at line 490 of file oauth_api.py.
| def nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::_check_signature | ( | self, | ||
| oauth_request, | ||||
| consumer, | ||||
| token | ||||
| ) | [private] |
Definition at line 493 of file oauth_api.py.
| 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.
| 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.
int nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::timestamp_threshold = 300 [static] |
Definition at line 370 of file oauth_api.py.
Definition at line 371 of file oauth_api.py.
Definition at line 372 of file oauth_api.py.
nv_python_libs::vimeo::oauth::oauth_api::OAuthServer::data_store = None [static] |
Definition at line 373 of file oauth_api.py.
1.6.3