Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-7781

persistent cookie auth module does not allow to change cookie name by default

    Details

    • Sprint:
      AM Sustaining Sprint 36, AM Sustaining Sprint 37, AM Sustaining Sprint 38, AM Sustaining Sprint 42
    • Story Points:
      3
    • Needs backport:
      No
    • Support Ticket IDs:
    • Verified Version/s:
    • Needs QA verification:
      Yes
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      By default the cookie name for the persistent cookie auth module can not be changed because the service property

      openam-auth-persistent-cookie-name

      is not exposed via OpenAM console or ssoadm.

      Workaround:
      Update service configuration as follows

      ssoadm add-attrs -u amadmin -f PASSWORD_FILE -s iPlanetAMAuthPersistentCookieService -t Organization -F PATH_TO/update_iPlanetAMAuthPersistentCookieService.xml
      
      ssoadm add-attrs -u amadmin -f PASSWORD_FILE -s iPlanetAMAuthPersistentCookieService -t Organization -c serverconfig -F PATH_TO/update_iPlanetAMAuthPersistentCookieService.xml
      
      update_iPlanetAMAuthPersistentCookieService.xml
      <AttributeSchema name="openam-auth-persistent-cookie-name" type="single" syntax="string" i18nKey="a006">
       <DefaultValues>
        <Value>session-jwt</Value>
       </DefaultValues>
      </AttributeSchema>
      

      the description of the module/localisation needs to be done in amAuthPersistentCookie.properties, e.g.

      amAuthPersistentCookie.properties
      a006=Name of the persistent cookie
      a006.help=Sets the name of the persistent cookie
      

        Attachments

          Activity

            People

            • Assignee:
              sachiko Sachiko Wallace
              Reporter:
              bthalmayr Bernhard Thalmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: