Java Policy Agents 2023.3

Set-Cookie Internal Map

When creating internal cookies, such as am-auth-jwt and the pre-authentication cookies, this property sets additional attributes by adding text into the Set-Cookie header.

Specify a key:value map, where the key is the cookie name, and the value is the string to add to the Set-Cookie header. If the key is omitted, the value becomes the default for all cookies.

Separate multiple values with a semicolon.

Examples:

  • Set the SameSite attribute of the am-auth-jwt cookie: org.forgerock.agents.set.cookie.internal.map[am-auth-jwt]=samesite=strict

  • Set the SameSite attribute of all cookies: org.forgerock.agents.set.cookie.internal.map=samesite=strict

  • Set several attributes of mycookie: org.forgerock.agents.set.cookie.internal.map[myCookie]=Max-Age=10000; Domain=.my.default.fqdn

Property name

org.forgerock.agents.set.cookie.internal.map

Aliases

org.forgerock.agents.set.cookie.internal.map
  Introduced in Java Agent 5.6.3.0
  Recognized from AM 7

Type

Map

  • Keys: Agent internal cookie name

  • Values: (samesite) text to be added to the Set-Cookie header

Bootstrap property

No

Required property

No

Restart required

No

Local configuration file

AgentConfig.properties

AM console

Tab: SSO (from AM 7)

Title: Set-Cookie Internal Map

Copyright © 2010-2023 ForgeRock, all rights reserved.