Update components/middleware.py
Browse files- components/middleware.py +5 -4
components/middleware.py
CHANGED
|
@@ -130,12 +130,13 @@ class x401Kit(BaseHTTPMiddleware):
|
|
| 130 |
REQUIRED_SERVICE=None
|
| 131 |
|
| 132 |
|
| 133 |
-
for protected_path,service_name in self.protected_paths.items():
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
| 139 |
|
| 140 |
|
| 141 |
|
|
|
|
| 130 |
REQUIRED_SERVICE=None
|
| 131 |
|
| 132 |
|
| 133 |
+
#for protected_path,service_name in self.protected_paths.items():
|
| 134 |
+
#for protected_path in protected_paths:
|
| 135 |
|
| 136 |
+
#if request.url.path.startswith(protected_path):
|
| 137 |
|
| 138 |
+
#REQUIRED_SERVICE = service_name
|
| 139 |
+
#break
|
| 140 |
|
| 141 |
|
| 142 |
|