From 119ffd602737480cf0be1369dd93b9fe41c25faf Mon Sep 17 00:00:00 2001 From: mls Date: Tue, 26 Apr 2022 12:50:05 +0200 Subject: [PATCH] Rename OscHTTPBasicAuthHandler to OscHTTPAuthHandler We'll support more than one auth scheme in the future. --- osc/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/conf.py b/osc/conf.py index 80db0ace..651affbf 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -507,7 +507,7 @@ def _build_opener(apiurl): from osc.core import __version__ global config - class OscHTTPBasicAuthHandler(HTTPBasicAuthHandler, object): + class OscHTTPAuthHandler(HTTPBasicAuthHandler, object): # python2: inherit from object in order to make it a new-style class # (HTTPBasicAuthHandler is not a new-style class) def _rewind_request(self, req): @@ -548,7 +548,7 @@ def _build_opener(apiurl): options = config['api_host_options'][apiurl] # with None as first argument, it will always use this username/password # combination for urls for which arg2 (apisrv) is a super-url - authhandler = OscHTTPBasicAuthHandler( \ + authhandler = OscHTTPAuthHandler( \ HTTPPasswordMgrWithDefaultRealm()) authhandler.add_password(None, apiurl, options['user'], options['pass'])