Legacy platform

Bypassing authentication for a URI

You can set up the application to bypass authentication for URIs (universal resource indicators) that point to graphic files, cascading style sheets (css), and other items that support information that is already protected by authentication.

About this task

Procedure

  1. Open the web.xml file.
  2. Add one or more parameters to the <context-param> tag:
    • bypass.uri.endswith

      Allows any URI ending with the specified text to be bypassed. You can use this parameter with js, css, and gif files.

      In the following example, any URI that ends with .gif would be bypassed:

      <context-param>
        <param-name>bypass.uri.endswith.<application>.3</param-name>
        <param-value>.gif</param-value>
      </context-param>
    • bypass.uri.regex

      Allows any URI that includes the specified wild card characters to be bypassed.

      In the following example, any URI that includes "<app_dir>", "/", and at least one uppercase letter would be bypassed:
      <context-param>
        <param-name>bypass.uri.regex.<application>.1</param-name>
        <param-value>.*<app_dir>/[A-Z]+.*</param-value>
      </context-param>