Bug ID 1472589: Support for disabling ACCESS for OAuth-RS Profile Type virtual server

Last Modified: Oct 04, 2024

Affected Product(s):
BIG-IP APM(all modules)

Known Affected Versions:
16.1.4, 16.1.4.1, 16.1.4.2, 16.1.4.3, 16.1.5, 16.1.5.1

Opened: Jan 02, 2024

Severity: 4-Minor

Symptoms

You are unable to disable ACCESS logic for a virtual server with the Profile-Type 'OAuth-Resource Server'

Impact

You will not be able to disable ACCESS logic for virtual server with Profile-Type 'OAuth-Resource Server'

Conditions

Virtual Server with 'OAuth-Resource server' profile type checks for Authorization header, preflight requests do not have such header so get 400 Bad request in return.

Workaround

Configure another virtual server with Profile-Type 'All' and redirect the specific (i.e pre-flight) requests to that VS. Attach below irule on existing VS, when HTTP_REQUEST { set auth_token "abcasdfasdfnaskzfiajsfhasikasigiashdfnaksjdnkasdfnkajnsdkjfnaksjdnfanskdfnkas"; set original_headers [HTTP::header "Authorization"] if { $original_headers eq "" } { HTTP::header insert "Authorization" "Bearer $auth_token" log local0. "new irule redirect event" HTTP::redirect "http://10.103.119.36/" } else { HTTP::header replace "Authorization" "Bearer $auth_token" } }

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips