mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-05 23:50:37 +00:00
fix: recursion
This commit is contained in:
parent
3b095bba5a
commit
eac4a2c16d
|
@ -222,13 +222,14 @@ class KanidmUserRepository(AbstractUserRepository):
|
|||
raise ValueError(f"Unsupported HTTP method: {method}")
|
||||
|
||||
full_endpoint = f"{KANIDM_URL}/v1/{endpoint}"
|
||||
kanidm_token = KanidmAdminToken.get()
|
||||
|
||||
try:
|
||||
response = request_method(
|
||||
full_endpoint,
|
||||
json=data,
|
||||
headers={
|
||||
"Authorization": f"Bearer {KanidmAdminToken.get()}",
|
||||
"Authorization": f"Bearer {kanidm_token}",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
timeout=1,
|
||||
|
|
Loading…
Reference in a new issue