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