renaming stuff, admin area

This commit is contained in:
Philipp Rothmann 2022-11-08 13:30:09 +01:00
parent f64dfe45c9
commit 1922c8423e
16 changed files with 109 additions and 21 deletions

View file

@ -24,7 +24,7 @@ class AuthentikApi: # TODO: check if can be replaced with apispec generated api?
res = requests.get(f"{AUTHENTIK_BASEURL}{url}", headers={
"Authorization": f"Bearer {AuthentikApi.__token()}"})
AuthentikApi.__handleError(res)
if (res.json()["pagination"]):
if ("pagination" in res.json()):
return AuthentikApi.__paginate(res)
return res.json()
except AuthentikError as err: