Skip to content

Commit

Permalink
Update fastapi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iskomir committed Apr 6, 2024
1 parent 6e30bae commit 97085fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth_lib/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 97085fd

Please sign in to comment.