Make sure to reuse same client secrets between runs.

This commit is contained in:
Antoine Nguyen
2025-11-07 16:09:51 +01:00
parent 2121cfe267
commit 7a38a535f8
4 changed files with 24 additions and 6 deletions

View File

@@ -154,7 +154,10 @@ class Dovecot(base.Installer):
protocols = ""
oauth2_client_id, oauth2_client_secret = utils.create_oauth2_app(
"Dovecot", "dovecot", self.config
"Dovecot",
"dovecot",
self.config.get("dovecot", "oauth2_client_secret"),
self.config
)
hostname = self.config.get("general", "hostname")
oauth2_introspection_url = (

View File

@@ -41,7 +41,11 @@ class Radicale(base.Installer):
"""Additional variables."""
context = super().get_template_context()
oauth2_client_id, oauth2_client_secret = utils.create_oauth2_app(
"Radicale", "radicale", self.config)
"Radicale",
"radicale",
self.config.get("radicale", "oauth2_client_secret"),
self.config
)
hostname = self.config.get("general", "hostname")
oauth2_introspection_url = (
f"https://{oauth2_client_id}:{oauth2_client_secret}"