Skip to content

Commit

Permalink
Remove python-jose unmaintained & unused dependency
Browse files Browse the repository at this point in the history
The webapp does not use JWT

python-jose seems unmaintained:
* mpdavis/python-jose#340
* CVE --> mpdavis/python-jose#346

Possible remplacement:
* pyjwt: https://github.com/jpadilla/pyjwt
* joserfc: https://github.com/authlib/joserfc
  • Loading branch information
dalf committed Jul 29, 2024
1 parent a031aa1 commit 81a010e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions backend/app/app/api/deps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Generator, Optional

from fastapi import Depends, HTTPException, status
from jose import jwt, JWTError
from pydantic import BaseModel
from sqlalchemy.orm.session import Session

Expand All @@ -10,10 +9,6 @@
from app import crud


class TokenData(BaseModel):
username: Optional[str] = None


def get_db() -> Generator:
db = SessionLocal()
try:
Expand Down
1 change: 0 additions & 1 deletion backend/app/app/tasks/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# from app.schemas.source import SourceUpdate
from app.schemas.article import ArticleUpdate
from app import crud
from app.api import deps
from sqlalchemy.orm import Session
from app.api import deps
from app.db.session import SessionLocal
Expand Down
1 change: 0 additions & 1 deletion compose/local/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ cffi==1.15.1
email-validator==2.2.0
pydantic==1.10.13
passlib==1.7.4
python-jose==3.3.0
httpx==0.23.3
python-multipart==0.0.9
gunicorn==22.0.0
Expand Down

0 comments on commit 81a010e

Please sign in to comment.