providers/proxy: add option to override host header with property mappings (cherry-pick #14927) (#14945)
Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
		![98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) gcp-cherry-pick-bot[bot]
					gcp-cherry-pick-bot[bot]
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							150705f221
						
					
				
				
					commit
					dd08e1bf66
				
			| @ -152,3 +152,17 @@ return { | ||||
| ``` | ||||
|  | ||||
| Afterwards, edit the _Proxy provider_ and add this new mapping. The expression is only evaluated when the user logs into the application. | ||||
|  | ||||
| ## Host header:ak-version[2025.6.1] | ||||
|  | ||||
| By default, the proxy provider will use forwarded Host header received from the client. Starting with authentik 2025.6.1, it is possible to dynamically adjust the Host header with a property mapping. | ||||
|  | ||||
| ```python | ||||
| return { | ||||
|     "ak_proxy": { | ||||
|         "host_header": "my-internal-host-header" | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| Afterwards, edit the _Proxy provider_ and add this new mapping. The expression is only evaluated when the user logs into the application. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user