Skip to content

Commit 9e88bad

Browse files
committed
squashme: fixups from rebasing
1 parent b0545e2 commit 9e88bad

File tree

7 files changed

+300
-281
lines changed

7 files changed

+300
-281
lines changed

components/renku_data_services/authn/dummy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ class DummyAuthenticator:
4040

4141
token_field = "Authorization" # nosec: B105
4242

43-
@staticmethod
44-
async def authenticate(access_token: str, request: Request) -> base_models.APIUser:
43+
async def authenticate(self, access_token: str, request: Request) -> base_models.APIUser:
4544
"""Indicates whether the user has successfully logged in."""
45+
access_token = request.headers.get(self.token_field) or ""
46+
access_token = access_token.removeprefix("Bearer ").removeprefix("bearer ")
4647
user_props = {}
4748
with contextlib.suppress(Exception):
4849
user_props = json.loads(access_token)

components/renku_data_services/session/db.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from collections.abc import Callable
66
from contextlib import AbstractAsyncContextManager, nullcontext
77
from datetime import UTC, datetime
8-
from pathlib import PurePosixPath
98
from typing import Any
109

1110
from sqlalchemy import select

poetry.lock

Lines changed: 121 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/background_jobs/poetry.lock

Lines changed: 1 addition & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)