doc: third-party auth

This commit is contained in:
imperosol
2026-07-15 16:28:05 +02:00
parent 3fc95e8828
commit 99ed3f4a52
13 changed files with 394 additions and 30 deletions
+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()