summaryrefslogtreecommitdiff
path: root/oauthlib/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r--oauthlib/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py
index 831f9eb..d9d56b3 100644
--- a/oauthlib/common.py
+++ b/oauthlib/common.py
@@ -235,7 +235,7 @@ def generate_token(length=30, chars=UNICODE_ASCII_CHARACTER_SET):
return ''.join(rand.choice(chars) for x in range(length))
-def generate_crypto_token(private_pem, request):
+def generate_signed_token(private_pem, request):
import Crypto.PublicKey.RSA as RSA
import jwt
@@ -256,7 +256,7 @@ def generate_crypto_token(private_pem, request):
return token
-def verify_crypto_token(private_pem, token):
+def verify_signed_token(private_pem, token):
import Crypto.PublicKey.RSA as RSA
import jwt