Compare commits

...
Author SHA1 Message Date
ba404112d7
add debug message about fetched keycloak keys
All checks were successful
Build Container / Build Container (push) Successful in 1m42s
2026-07-18 20:50:29 +02:00
ee9edfcc70
clear up static api token error message 2026-07-18 20:49:11 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -135,7 +135,7 @@ def clear_oidc_auth_state(resp: Response):
def get_logged_in_token_user(req: Request, token: Optional[str]):
if not token or not token.startswith("Static-Token "):
logger.debug("No valid API-Token was provided")
logger.debug("No static API-Token was part of the request")
return None
token = token.removeprefix("Static-Token ")

View file

@ -71,6 +71,7 @@ class KeycloakClient:
async with self.http.get(f"./attribute-endpoints-provider/export/{self.keycloak_attribute_group}") as resp:
keys = await resp.json()
assert isinstance(keys, list)
logger.info(f"Successfully fetched {len(keys)} from Keycloak")
self.ssh_keys = keys
self.data_updated.set()
self.data_updated.clear()