Include a software id in oauth client registration

This is supposed to be a unique and persistent identifier for the
software itself, regardless of version or deployment instance.

Generated from the domain name in the comment using uuid_generate_sha1()
This commit is contained in:
Kim Alvefur
2025-06-03 18:18:24 +02:00
committed by Matthew Wild
parent 9474238dee
commit 1a65ba6150

View File

@@ -477,6 +477,7 @@ class ProsodyClient:
"response_types": [],
"token_endpoint_auth_method": "client_secret_post",
"scope": " ".join([SCOPE_RESTRICTED, SCOPE_DEFAULT, SCOPE_ADMIN]),
"software_id": "22aa246e-4373-51cb-bcaa-9f73bb235b84", # web-portal.snikket.org
"software_version": _version.version,
}
async with self._plain_session as session: