Skip to content

Commit 5ebed74

Browse files
authored
Merge pull request #213 from open-data/removal/old-login-middleware
Remove Old Login Middleware
2 parents 8d51b54 + 6904255 commit 5ebed74

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changes/213.canada.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed old Flask login Middleware.

ckan/config/middleware/flask_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ def load_user_from_request(request): # type: ignore
338338
config[key] = flask_app.config[key]
339339

340340
# Prevent the host from request to be added to the new header location.
341-
app = HostHeaderMiddleware(app)
341+
# (canada fork only): remove old user auth domain things...
342+
# TODO: upstream contrib!!
343+
# app = HostHeaderMiddleware(app)
342344

343345
app = I18nMiddleware(app)
344346

0 commit comments

Comments
 (0)