---
title: Custom Login Mode
description: Sets the login redirection mode, as follows:
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:org.forgerock.openam.agents.config.allow.custom.login
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/org.forgerock.openam.agents.config.allow.custom.login.html
---

# Custom Login Mode

Sets the login redirection mode, as follows:

* `0`: Disabled; default login redirection mode enabled.

* `1`: Enabled; non-OIDC compliant login flow, **standard** flow, where the agent does the following:

  * Tracks user authentication.

  * Converts the SSO token into an ID token at the end of the authentication flow.

  * Redirects the user to the originally requested resource.

  * The SSO token name is given by [Cookie Name](com.sun.identity.agents.config.cookie.name.html).

* `2`: (For environments migrating from earlier versions of the agent) Enabled; non-OIDC compliant login flow, **non-standard** flow, where the agent does the following:

  * Does not track user authentication.

  * Redirects the user with a `goto` query parameter to the originally requested resource.

  * Configure this property with [Accept SSO Token](com.forgerock.agents.accept.sso.token.html), as described in [Login redirect configuration options](../user-guide/login-redirect.html#table-login-redirect) in the *User Guide*.

Default: `0`

|                    |                                                                                       |
| ------------------ | ------------------------------------------------------------------------------------- |
| Property name      | `org.forgerock.openam.agents.config.allow.custom.login`   Introduced in Web Agent 5.5 |
| Function           | Login redirect                                                                        |
| Type               | Integer                                                                               |
| Bootstrap property | No                                                                                    |
| Required property  | No                                                                                    |
| Restart required   | No                                                                                    |
| AM console         | Tab: `AM Services (From AM 7)`Title: `Custom Login Mode`                              |
