Forum Discussion
Thiyagu
Cirrus
Oct 19, 2023iRule to insert HTTP Basic Authorization to the server side connection
Hi Team, Good day. We are working on an iRule to insert http basic authorization for the session to the application servers. The front end connection from the client to the LB will not have http ba...
Oct 22, 2023
Hi Thiyagu,
The iRule below should do the trick for you.
when HTTP_REQUEST {
set username "Aladdin"
set password "open sesame"
set credentials [b64encode "$username:$password"]
HTTP::header insert "Authorization" "Basic $credentials"
}
Have fun,
--Niels
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
