Skip to content

Commit

Permalink
squashme: fixups from rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Sep 20, 2024
1 parent b0545e2 commit 9e88bad
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 281 deletions.
5 changes: 3 additions & 2 deletions components/renku_data_services/authn/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ class DummyAuthenticator:

token_field = "Authorization" # nosec: B105

@staticmethod
async def authenticate(access_token: str, request: Request) -> base_models.APIUser:
async def authenticate(self, access_token: str, request: Request) -> base_models.APIUser:
"""Indicates whether the user has successfully logged in."""
access_token = request.headers.get(self.token_field) or ""
access_token = access_token.removeprefix("Bearer ").removeprefix("bearer ")
user_props = {}
with contextlib.suppress(Exception):
user_props = json.loads(access_token)
Expand Down
1 change: 0 additions & 1 deletion components/renku_data_services/session/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from collections.abc import Callable
from contextlib import AbstractAsyncContextManager, nullcontext
from datetime import UTC, datetime
from pathlib import PurePosixPath
from typing import Any

from sqlalchemy import select
Expand Down
193 changes: 121 additions & 72 deletions poetry.lock

Large diffs are not rendered by default.

24 changes: 1 addition & 23 deletions projects/background_jobs/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9e88bad

Please sign in to comment.