diff --git a/auth_lib/fastapi.py b/auth_lib/fastapi.py index abb6e38..d14affa 100644 --- a/auth_lib/fastapi.py +++ b/auth_lib/fastapi.py @@ -73,7 +73,7 @@ def _except_authorization(self): else: return None - def _except_authentification(self): + def _except_authentificated(self): if self.auto_error: raise HTTPException( status_code=HTTP_403_FORBIDDEN, detail="Not authenticated" @@ -119,5 +119,5 @@ async def __call__( ) required_scopes = set([scope.lower() for scope in self.scopes]) if required_scopes - session_scopes: - self._except_authentification() + self._except_authentificated() return result