Forum Discussion

Alexandre's avatar
Alexandre
Icon for Altocumulus rankAltocumulus
Jun 10, 2022

ACCESS::disable with policy "OAuth-Resource Server" ?

Hello,

Anyone knows how if equivalent of "ACCESS::disable" is possible on "OAuth-Resource Server" apm policy?

At the end I want to allow pre-flight CORS calls to bypass the apm. I tried this irule but seems to not be working with F5 as "oauth RS", I still get response "HTTP/1.1 400 Bad Request" because of auth failed.

Thanks 

Alexandre.

 

 

 

when HTTP_REQUEST {
if {([HTTP::method] eq "OPTIONS") &&
[HTTP::header exists "Access-Control-Request-Method"] &&
[HTTP::header exists "Access-Control-Request-Headers"] &&
[HTTP::header exists "Origin"] &&
[HTTP::header Origin] ends_with "XXXXXXXXXXX" } {
#log local0. "Disable apm - [HTTP::method] - [HTTP::host][HTTP::uri]"
ACCESS::disable
}
}

 

 

 

2 Replies

  • when you enable the logging does it activate at the correct moment? no errors in the /var/log/ltm about wrong iRule command or such?

  • It match the if condition, but don't apply the ACCESS::disable. No big surprise as "OAuth-Resource Server" Policy are not classic apm policy...