From 330e4d5a1f4fda1dc2ba265c1dc461496dd4ebf0 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 15 Apr 2021 22:54:30 +0100 Subject: [PATCH] Reverse check order between WebCert and WebPrincipal in case both are set In the case that both WebPrincipal and WebCert are set, reverse the order of checking them so that WebCert is used by default. --- www/kojiweb/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index e57feaae..102ff9e1 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -277,10 +277,10 @@ def login(environ, page=None): # This matches the original behaviour webauth = options['WebAuth'] if not webauth: - if options['WebCert']: - webauth = 'ssl' if options['WebPrincipal']: webauth = 'kerberos' + if options['WebCert']: + webauth = 'ssl' if not webauth: raise koji.AuthError(