Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ba404112d7 |
|||
|
ee9edfcc70 |
2 changed files with 2 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ def clear_oidc_auth_state(resp: Response):
|
||||||
|
|
||||||
def get_logged_in_token_user(req: Request, token: Optional[str]):
|
def get_logged_in_token_user(req: Request, token: Optional[str]):
|
||||||
if not token or not token.startswith("Static-Token "):
|
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
|
return None
|
||||||
|
|
||||||
token = token.removeprefix("Static-Token ")
|
token = token.removeprefix("Static-Token ")
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ class KeycloakClient:
|
||||||
async with self.http.get(f"./attribute-endpoints-provider/export/{self.keycloak_attribute_group}") as resp:
|
async with self.http.get(f"./attribute-endpoints-provider/export/{self.keycloak_attribute_group}") as resp:
|
||||||
keys = await resp.json()
|
keys = await resp.json()
|
||||||
assert isinstance(keys, list)
|
assert isinstance(keys, list)
|
||||||
|
logger.info(f"Successfully fetched {len(keys)} from Keycloak")
|
||||||
self.ssh_keys = keys
|
self.ssh_keys = keys
|
||||||
self.data_updated.set()
|
self.data_updated.set()
|
||||||
self.data_updated.clear()
|
self.data_updated.clear()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue