Forum Discussion
quattroginger
Nimbostratus
Jul 11, 2025irule for redirect and header injection
we have an application going through APM with AD authentication. A irule is applied to redirect it directly to backend server and is functioning. I need to insert "X-Authenticated-User" "true" to the...
Aswin_mk
MVP
Jul 15, 2025Hi,
Can you try this, if possible, i am not checked the syntax, just created as per requirement.
when HTTP_REQUEST {
if { [ACCESS::policy result] eq "allow" } {
set username [ACCESS::session data get "session.logon.last.username"]
if { $username ne "" } {
HTTP::header insert "X-Authenticated-User" $username
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
