X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=o2common%2Fauthmw%2Fauthmiddleware.py;h=032e735dc253bd2c4a687e715902a3160fe9924e;hb=45f6aa19191f366a05aa6df0902536c225c6d970;hp=13be91013885a57f91127fecc9433bef5f0bafbc;hpb=1d8827e06f6df75c8bbe826ab7cefa6c3b6978a2;p=pti%2Fo2.git diff --git a/o2common/authmw/authmiddleware.py b/o2common/authmw/authmiddleware.py index 13be910..032e735 100644 --- a/o2common/authmw/authmiddleware.py +++ b/o2common/authmw/authmiddleware.py @@ -61,8 +61,7 @@ class authmiddleware(): logger.info(__name__ + 'authentication middleware') req = Request(environ, populate_request=True, shallow=True) try: - auth_header = req.headers['Authorization'] - + auth_header = req.headers.get('Authorization', None) if auth_header: auth_token = auth_header.split(" ")[1]