Forum Discussion
Paul_Ryan_73610
Nimbostratus
May 05, 2011x-authenticated-user - Web Proxy
Hi Guys,
Wondering if somebody can help or at least let me know if it would be possible to develop an iRule so that requests to a whitelist of URL's to a web proxy VIP could be intercepted ...
Colin_Walker_12
May 05, 2011Historic F5 Account
Sure, if you had a white-list you'd just need to do a class match and an HTTP::header insert, assuming that your app will trust the x-authenticated-user header and doesn't require some other token. ;)
You'd just need a class of IPs:
class whitelist {
"/myapp/somepage1"
"/myapp/somepage2"
....
}
And an iRule to look through that class and insert the header if it finds a match.
when HTTP_REQUEST {
if {!([HTTP::header exists "x-authenticated-user"]) } {
if { [class match [HTTP::uri] equals whitelist] } {
HTTP::header insert "X-Authenticated-User" "authenticated"
}
}
}
Something like that. If you've got any more specific questions or requirements, let me know.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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