Java Policy Agents 5.9.1

Enable HTTP 302 Redirects

HTTP 302 Redirects Enabled

Controls how the agent handles redirects, as follows:

  • true: HTTP 302 Redirects are enabled. When an unauthenticated request is made, and not-enforced rules do not apply, the agent returns an HTTP 302 code to redirect the user to an authentication endpoint.

  • false: HTTP 302 Redirects are disabled. When an unauthenticated request is made, the agent returns a block of configurable JSON that can be intercepted.

The returned HTTP code, content type, and data is configured by the following properties

Lists of URLs in a not-enforced rule style, for which the data is produced are configured by the following properties

Use this option when it is difficult to handle 302, for example, when the agent is accessed by a JavaScript application, or by something other than a browser.

Property name


Property aliases

org.forgerock.agents.302.redirects.enabled (since 5.8.0)


Boolean: true returns true; all other strings return false.



Bootstrap property


Required property


Restart required


Local configuration file

AM console tab


Copyright © 2010-2023 ForgeRock, all rights reserved.