Using a Pre-authn Rule to Detect the Browser Type Does Not Work (Doc ID 2174286.1)

Last updated on SEPTEMBER 28, 2016

Applies to:

Oracle Access Manager - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

Using a pre-authN rule to detect the browser type does not work as expected. The rule always returns "false".

Oracle Access Manager 11g (OAM 11.1.2.3.x)

Steps to reproduce:

=====================
1. Create a pre-authN rule of:

request.userAgent.lower().find('firefox') > 0

The condition of the rule is to deny access to any user with a Firefox browser. However, all browser types can access the resource and the OAM log shows that the rule always evaluates to false.

When the request for obrareq.cgi goes through some sort of proxy it seems to mess up the userAgent headers. For example, when configured to go through Oracle Traffic Director (OTD) we see the following in the OAM diagnostic log:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms