Forum Discussion
MW1
Cirrus
Jul 07, 2010Can this be done all in one Irule? - post rewrite, response rewrite , client cert auth / redirect & post reply + remember the orginal values
All,
I've been asked if I can:
1) rewrite a users login POST request to a web site, to insert a value (a remember me value) & remember the setting the user orginally choose.
2) Query the set cookie request that comes back from the webserver for one of the values (numerical string) and if it matches a "blacklist" (ie certain value) perform a client certificate authentication before proceeding or if not possible redirect the user to a different URI which is configured for this & at the same time reply back to the backend server (with the cookies to identify the user ) a post request ot log the user out of their session.
3) If the the client certificate check is performed on the without logging the user out above delete two values in the set cookie (username and ID which is set by the remember me setting) request that is sent to back to the user only if they did not set the remember me value.
I've seen examples of bits of the above but can this be achieved in one Irule? If not does anyone have a recommend way of storing the original value of the remember me setting between step number 1 to number 3?
thanks
- hoolio
Cirrostratus
Hi MW,
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