From f753b51167bbb6811515d4ca15e638fb54055195 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Sat, 11 May 2024 13:18:51 +0200 Subject: [PATCH] Use Basic Auth by Default This patch makes pyCA use HTTP Basic authentication by default for communicating with Opencast. The Digest authentication is still widely used for capture agents, but slowly becomes more obscure. Note that this is only the default. You can still use HTTP Digest authentication in necessary. --- etc/pyca.conf | 12 ++++++------ pyca/config.py | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/etc/pyca.conf b/etc/pyca.conf index 05028a7..c4a7886 100644 --- a/etc/pyca.conf +++ b/etc/pyca.conf @@ -189,18 +189,18 @@ url = 'https://develop.opencast.org' # # Type: options # Allowed values: basic, digest -# Default: digest -#auth_method = 'digest' +# Default: basic +#auth_method = 'basic' # Username for the admin server # Type: string -# Default: opencast_system_account -username = 'opencast_system_account' +# Default: admin +username = 'admin' # Password for the admin server # Type: string -# Default: CHANGE_ME -password = 'CHANGE_ME' +# Default: opencast +password = 'opencast' # HTTPS certificates for verification. If signed by a certificate authority # through an intermediate certificate, make sure to import the whole diff --git a/pyca/config.py b/pyca/config.py index 1c6bd51..539ebf1 100644 --- a/pyca/config.py +++ b/pyca/config.py @@ -43,9 +43,9 @@ [server] url = string(default='https://develop.opencast.org') -auth_method = option('basic', 'digest', default='digest') -username = string(default='opencast_system_account') -password = string(default='CHANGE_ME') +auth_method = option('basic', 'digest', default='basic') +username = string(default='admin') +password = string(default='opencast') insecure = boolean(default=False) certificate = string(default='') cookiefile = string(default='')