feat: delet passwsd
This commit is contained in:
@@ -1,3 +1,2 @@
|
|||||||
from src.infrastructure.security.jwt import JwtService
|
from src.infrastructure.security.jwt import JwtService
|
||||||
from src.infrastructure.security.csrf import CsrfService
|
from src.infrastructure.security.csrf import CsrfService
|
||||||
from src.infrastructure.security.hash import HashService
|
|
||||||
@@ -1,4 +1 @@
|
|||||||
from src.presentation.decorators.csrf import csrf_protect
|
# Import from submodules directly (e.g. decorators.auth) to avoid loading optional deps at startup.
|
||||||
from src.presentation.decorators.rate_limit import rate_limit, _email_rl_key as email_rl_key
|
|
||||||
from src.presentation.decorators.auth import require_access_token
|
|
||||||
from src.presentation.decorators.cache import cached
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from functools import wraps
|
|||||||
from typing import Callable, Awaitable, Any, Optional, Annotated
|
from typing import Callable, Awaitable, Any, Optional, Annotated
|
||||||
from fastapi import Request, Header
|
from fastapi import Request, Header
|
||||||
from src.application.domain.exceptions import ApplicationException
|
from src.application.domain.exceptions import ApplicationException
|
||||||
from src.infrastructure.security import CsrfService
|
from src.infrastructure.security.csrf import CsrfService
|
||||||
|
|
||||||
|
|
||||||
def csrf_protect(
|
def csrf_protect(
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
from fastapi import Depends
|
from fastapi import Depends
|
||||||
from src.application.contracts import IJwtService, ILogger, IHashService
|
from src.application.contracts import IJwtService, ILogger, IHashService
|
||||||
from src.infrastructure.security import JwtService, HashService
|
from src.infrastructure.security.jwt import JwtService
|
||||||
from src.infrastructure.vault import JwtKeyStore
|
from src.infrastructure.vault import JwtKeyStore
|
||||||
from src.presentation.dependencies.logger import get_logger
|
from src.presentation.dependencies.logger import get_logger
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=1)
|
@lru_cache(maxsize=1)
|
||||||
def _hash_service(logger: ILogger) -> IHashService:
|
def _hash_service(logger: ILogger) -> IHashService:
|
||||||
|
from src.infrastructure.security.hash import HashService
|
||||||
|
|
||||||
return HashService(logger=logger)
|
return HashService(logger=logger)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user