Forum Discussion
Giuseppe_Casabl
Dec 12, 2008Nimbostratus
how to remove Authorization http header
Hi
I'm testing the IRule functionality. I do radius authentication of the virtual server and then the request is passing to a pool. Now I got a Error 500 because the Authorization header is set...
hooleylist
Dec 12, 2008Cirrostratus
Hi Giuseppe,
The HTTP profile configuration for adding/removing headers is performed before HTTP_REQUEST is triggered. The auth header is read in default HTTP_REQUEST event (priority 500). So that's why the profile option to remove the auth header would prevent the authorization from working.
You can use an iRule with a priority (Click here) set to greater than the default of 500 to remove the auth header after the auth iRule uses it:
when HTTP_REQUEST priority 501 {
Remove the Authorization header after the system authorization iRule runs (at priority 500)
if {[HTTP::header exists Authorization]}{
HTTP::header remove Authorization
}
}
Aaron
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