Forum Discussion
MDPF52_180608
Sep 07, 2015Nimbostratus
APM HTTP Header injection
Hello DevCentral Community,
I want to ask you if is it possible to inject the HTTP Headers in the server side connection when APM is in place.
Basically, I need to send dynamically from the F5 to...
Stanislas_Piro2
Sep 07, 2015Cumulonimbus
Hi,
ACCESS_POLICY_COMPLETED and ACCESS_POLICY_AGENT_EVENT only raise during policy evaluation.
When user is authenticated, the only APM event raised on every requests is ACCESS_ACL_ALLOWED.
[ACCESS::session data get session.server.landinguri] is the URL that matched first time request and is stored in variable to redirect user after authentication... it will be always the same during the whole session...
you can try something like that:
when ACCESS_ACL_ALLOWED {
set role [ACCESS::session data get session.custom.role]
switch -glob [string tolower $role] {
"rolea" { HTTP::header insert "Role" "RoleA" }
"roleb" { HTTP::header insert "Role" "RoleB" }
default { HTTP::header insert "Role" "Undefined" }
}
set userprincipalname [ACCESS::session data get "session.ad.last.attr.userPrincipalName"]
HTTP::header insert "userPrincipalName" $userprincipalname
}
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