fix request.environ -> request.headers to get HTTP headers from reverse proxy
Este commit está contenido en:
		
							padre
							
								
									d7d8ef6d76
								
							
						
					
					
						commit
						034cc1febd
					
				
					Se han modificado 1 ficheros con 1 adiciones y 1 borrados
				
			
		|  | @ -222,7 +222,7 @@ def create_app(config=None): | |||
|         @app.before_request | ||||
|         def proxy_auth(): | ||||
|             from realms.modules.auth.proxy.models import User as ProxyUser | ||||
|             remote_user = request.environ.get(app.config["AUTH_PROXY_HEADER_NAME"]) | ||||
|             remote_user = request.headers.get(app.config["AUTH_PROXY_HEADER_NAME"]) | ||||
|             if remote_user: | ||||
|                 if current_user.is_authenticated: | ||||
|                     if current_user.id == remote_user: | ||||
|  |  | |||
		Cargando…
	
	Añadir tabla
		Añadir enlace
		
	
		Referenciar en una nueva incidencia