Forum Discussion
david78
Sep 28, 2011Nimbostratus
Basic-auth (401) without redirection to /my.policy
Hi,
We use our Bigip like a reverse-proxy with iRules "ProxyPass".
We are in v11
We need to authenticate our users with basic-auth method (HTTP code 401).
...
Ferg_104721
Sep 30, 2011Nimbostratus
Hi
I dont know ifthis would help you but I have used an irule in the past for an external facing VS to check the header look for auth/uri and depending on the result return a http 401. If you get it to redirect for basic auth before the APM maybe the 301 wont come into effect.
This code is a little rough but it does the job.
when HTTP_REQUEST {
if {[HTTP::uri] contains "????"}{
if {[HTTP::header exists Authorization]}{
HTTP::release
} else {
HTTP::collect
HTTP::respond 401
HTTP::release
}
}
}
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