Show More
@@ -276,15 +276,17 b' def get_container_username(environ, conf' | |||||
276 | if str2bool(config.get('container_auth_enabled', False)): |
|
276 | if str2bool(config.get('container_auth_enabled', False)): | |
277 | from paste.httpheaders import REMOTE_USER |
|
277 | from paste.httpheaders import REMOTE_USER | |
278 | username = REMOTE_USER(environ) |
|
278 | username = REMOTE_USER(environ) | |
|
279 | log.debug('extracted REMOTE_USER:%s' % (username)) | |||
279 |
|
280 | |||
280 | if not username and str2bool(config.get('proxypass_auth_enabled', False)): |
|
281 | if not username and str2bool(config.get('proxypass_auth_enabled', False)): | |
281 | username = environ.get('HTTP_X_FORWARDED_USER') |
|
282 | username = environ.get('HTTP_X_FORWARDED_USER') | |
|
283 | log.debug('extracted HTTP_X_FORWARDED_USER:%s' % (username)) | |||
282 |
|
284 | |||
283 | if username: |
|
285 | if username: | |
284 | # Removing realm and domain from username |
|
286 | # Removing realm and domain from username | |
285 | username = username.partition('@')[0] |
|
287 | username = username.partition('@')[0] | |
286 | username = username.rpartition('\\')[2] |
|
288 | username = username.rpartition('\\')[2] | |
287 |
|
|
289 | log.debug('Received username %s from container' % username) | |
288 |
|
290 | |||
289 | return username |
|
291 | return username | |
290 |
|
292 |
General Comments 0
You need to be logged in to leave comments.
Login now