doc: third-party auth

This commit is contained in:
imperosol committed 2026-10-02 09:48:21 +02:00
1 parent 1efbf93f62
commit 5bea3f14e8
13 files changed
+393 -30

No files matched your search

+5 -1
View File
@@ -66,7 +66,11 @@ class ApiClient(models.Model):
return all(self.has_perm(perm) for perm in perm_list)
def reset_hmac(self, *, commit: bool = True) -> str:
"""Reset and return the HMAC key for this client."""
"""Reset and return the HMAC key for this client.
Args:
commit: if True (the default), persist the new hmac in db.
"""
self.hmac_key = get_hmac_key()
if commit:
self.save()