Forum Discussion
JRahm
Admin
Jan 22, 2026AppWorld DC Booth Kiosk Generator
Welcome to AppWorld, community! You may or may not be with us in person, but you can watch this thread for iRules that are either generated or described by the Distributed Cloud AI Assistant.
JimmyPackets
Cirrus
Mar 10, 2026AI-Generated iRule
Prompt: Parse an HTTP Authorization header to extract a Base64-encoded username and log it for audit purposes
Generated iRule (by F5 Distributed Cloud AI Assistant):
when HTTP_REQUEST priority 500 {
# Retrieve the Authorization header
set auth_header [HTTP::header "Authorization"]
# Check if Authorization header exists and starts with "Basic "
if { $auth_header ne "" && [string tolower [string range $auth_header 0 5]] eq "basic " } {
# Extract the Base64-encoded token by removing "Basic " prefix
set b64_token [string range $auth_header 6 end]
# Attempt to decode the Base64 token safely
if { [catch {b64decode $b64_token} decoded_creds] == 0 && $decoded_creds ne "" } {
# Extract username by splitting decoded string at the first colon
if { [regexp -- {^([^:]+):} $decoded_creds -> username] } {
# Log the extracted username for audit purposes
log local0. "Extracted username from Authorization header: $username"
}
}
}
}
F5, Inc. ("F5") disclaims all liability in connection with any output generated by the AI Assistant ("Output") or use thereof, including without limitation any negative business impact caused by your use of Output to administer, direct, configure or control the operation and functioning of any F5 products. Output is provided "as is" without any warranties of any kind.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