Esempio n. 1
0
def check_nonce(request, oauth_request, oauth_nonce, oauth_timestamp):
    check_nonce_args = inspect.getargspec(
        oauth_provider_store.check_nonce).args
    if 'timestamp' in check_nonce_args:
        return oauth_provider_store.check_nonce(request, oauth_request,
                                                oauth_nonce, oauth_timestamp)
    return oauth_provider_store.check_nonce(request, oauth_request,
                                            oauth_nonce)
Esempio n. 2
0
 def check_nonce(request, oauth_request, oauth_nonce, oauth_timestamp):
     check_nonce_args = inspect.getargspec(oauth_provider_store.check_nonce).args
     if 'timestamp' in check_nonce_args:
         return oauth_provider_store.check_nonce(
             request, oauth_request, oauth_nonce, oauth_timestamp
         )
     return oauth_provider_store.check_nonce(
         request, oauth_request, oauth_nonce
     )