Forum Discussion
Squeak
Oct 06, 2021Cirrus
Send cookie to client after authenticated by APM
Hi,
I´ve a scenario that requires that the APM sends a cookie back to the client after the user has been authenticated by the APM but before the user "hits" the backend server.
Normally I would have use the "when HTTP_RESPONSE" to insert the cookie to the client but that requires the traffic has been sent by the backend server.
//Cheers Mikael
- kgaiglCirrocumulus
we've an IRule like this:
when ACCESS_ACL_ALLOWED { set user [ACCESS::session data get "session.logon.last.username"] } when HTTP_REQUEST_RELEASE { HTTP::header insert "X-Forwarded-User" $user } when HTTP_RESPONSE_RELEASE { log local0. "[HTTP::status] [HTTP::header "Location"]" }
so maybe you can change this to your needs, for example instead of "header insert" "cookie insert"
- kgaiglCirrocumulus
when ACCESS_ACL_ALLOWED
is when the Client is authenticated
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