Commit Graph

10 Commits

Author SHA1 Message Date
Morgan Fainberg 595967bba6 Move AuthContextMiddleware
Move AuthContextMiddleware to keystone.server.flask.request_processing
to be more in line with the other internally defined middleware.

Change-Id: I25b6a88f4b0dc3af306360ee4e5ec0abfe3cf812
Partial-Bug: #1776504
2018-10-11 15:27:46 -07:00
Morgan Fainberg 848c8fa638 Convert Normalizing filter to flask native Middleware
Normalizing filter has been converted to a flask-native style
middleware instead of leaning on the old application logic from
Webob. We also now strip all trailing slashes, not just a single
traling slash.

Test Changes:

* test_url_middleware now tests the new middleware directly instead
  of leaning on webob and fake requests.

Change-Id: I5f82817b61a9284b97cf6443105107150d4a1757
Partial-Bug: #1776504
2018-10-11 15:27:46 -07:00
Jamie Lennox cf81d1ec35 Move AuthContext middleware into its own file
AuthContext middleware is quite a lot more complex than most of the
other things in the middleware.core directory. Move it out to its own
file before starting to refactor.

Change-Id: Ia9da577495b8ebc2a6ddeffc02e07b458c8f3a97
2015-11-12 11:47:51 +11:00
Brant Knudson de2c89cbef Safer noqa handling
"# flake8: noqa" was used in several files. This causes the
entire file to not be checked by flake8. This is unsafe, and
"# noqa" should be used only on those lines that require it.

E712 doesn't honor #noqa, so work around it by assigning True to a
variable.

Change-Id: I1ddd1c4f4230793f0560241e4559095cb4183d71
2014-03-27 18:52:07 -05:00
Eric Guo 263b27f2cd Remove vim header
We don't need vim modelines in each source file, it can be set in
user's vimrc.

Change-Id: Ie51ad62946afdf39eadcd59edaf8134ec10265c6
Closes-Bug: #1229324
2014-02-08 23:54:04 +08:00
Sean Winn 0331f8a58a Changed header from LLC to Foundation based on trademark policies
Fixes: Bug 1214176

Change-Id: Ie937081a53d377671b8b88f422642c8131002f88
2013-09-05 15:03:32 -05:00
Dolph Mathews b05ebb8780 Satisfy flake8 import rules F401 and F403
- Removed unused imports
- Ignore wildcard and unused imports from core modules (and avoid
  wildcard imports otherwise) to __init__ modules

Change-Id: Ie2e5f61ae37481f5d248788cfd83dc92ffddbd91
2013-05-23 09:14:05 -05:00
Dolph Mathews 5720730c2e Added license header (bug 929663)
Change-Id: Ia36a22f2d6bba411e4fad81ea2d6fa1f0465a733
2012-03-09 18:49:45 +00:00
termie fc79bbe7f4 update some names 2012-01-18 21:47:18 -08:00
termie 47908a4735 add legacy middleware 2012-01-10 17:21:28 -08:00