Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch from jose to pyjwt #207

Merged
merged 2 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drf_social_oauth2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generate_token(request, length=30, chars=UNICODE_ASCII_CHARACTER_SET):
why SystemRandom is used instead of the default random.choice method.
"""
from django.conf import settings
from jose import jwt
import jwt

rand = SystemRandom()
secret = getattr(settings, 'SECRET_KEY')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include = '\.pyi?$'
skip-string-normalization = true
requires = [
'python-jose[cryptography]>=3.2.0',
'PyJWT>=2.8.0',
'python-secrets>=3.9.2',
]
exclude = '''
Expand Down
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ social-auth-app-django>=3.1.0
pytest-mock==3.6.1
coverage==6.2
psycopg2-binary==2.9.3
python-jose[cryptography]>=3.3.0
model_bakery==1.11.0
PyJWT==2.8.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'djangorestframework>=3.10.3',
'django-oauth-toolkit>=0.12.0',
'social-auth-app-django>=3.1.0',
'python-jose[cryptography]>=3.3.0',
'PyJWT>=2.8.0'
],
include_package_data=True,
zip_safe=False,
Expand Down