Add paste.filter_factory entrypoint for basic auth middleware
... so that the middleware can be loaded using the python egg instead of the direct path. Closes-Bug: #1940738 Change-Id: I57408766c120d2c9784f3886457e91ee7d30de1b
This commit is contained in:
parent
da7987ca92
commit
8e47bfc77c
|
@ -10,7 +10,8 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
__all__ = ['CatchErrors',
|
__all__ = ['BasicAuthMiddleware',
|
||||||
|
'CatchErrors',
|
||||||
'CorrelationId',
|
'CorrelationId',
|
||||||
'CORS',
|
'CORS',
|
||||||
'Debug',
|
'Debug',
|
||||||
|
@ -20,6 +21,7 @@ __all__ = ['CatchErrors',
|
||||||
'RequestBodySizeLimiter',
|
'RequestBodySizeLimiter',
|
||||||
'SSLMiddleware']
|
'SSLMiddleware']
|
||||||
|
|
||||||
|
from oslo_middleware.basic_auth import BasicAuthMiddleware
|
||||||
from oslo_middleware.catch_errors import CatchErrors
|
from oslo_middleware.catch_errors import CatchErrors
|
||||||
from oslo_middleware.correlation_id import CorrelationId
|
from oslo_middleware.correlation_id import CorrelationId
|
||||||
from oslo_middleware.cors import CORS
|
from oslo_middleware.cors import CORS
|
||||||
|
|
|
@ -42,6 +42,7 @@ paste.app_factory =
|
||||||
healthcheck = oslo_middleware:Healthcheck.app_factory
|
healthcheck = oslo_middleware:Healthcheck.app_factory
|
||||||
|
|
||||||
paste.filter_factory =
|
paste.filter_factory =
|
||||||
|
basic_auth = oslo_middleware:BasicAuthMiddleware.factory
|
||||||
catch_errors = oslo_middleware:CatchErrors.factory
|
catch_errors = oslo_middleware:CatchErrors.factory
|
||||||
correlation_id = oslo_middleware:CorrelationId.factory
|
correlation_id = oslo_middleware:CorrelationId.factory
|
||||||
cors = oslo_middleware:CORS.factory
|
cors = oslo_middleware:CORS.factory
|
||||||
|
|
Loading…
Reference in New Issue