Refine the auth provider 18/12918/5
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Wed, 22 May 2024 08:56:28 +0000 (16:56 +0800)
committerZhang Rong(Jon) <rong.zhang@windriver.com>
Thu, 23 May 2024 07:05:57 +0000 (15:05 +0800)
commitdddebe87e62dfefa79e03240ad48c8e0b351a6ed
tree28478b83f44c8ac6cb1ae271b1379bac0bb1b7a6
parent33c7e7d9ee099b7d718bd74209e983f04cdc0298
Refine the auth provider

This commit will refine auth provider, to make the auth
can disable from the source code and without exception.
Move the global scope methods into the class.

Test Plan:
1. Enabling the authentication worked correctly.
2. Disabling the authentication worked as expected without any
exceptions.

Issue-ID: INF-462

Change-Id: Ief69016ed73a525ca8e6a12eda959cb1422968f6
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
o2app/entrypoints/flask_application.py
o2common/authmw/authprov.py