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

Scripted Module cannot work if "iplanet-am-auth-shared-state-enabled=true" set

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 13.5.0, 13.5.1, 14.0.0, 14.1.0, 14.1.1, 5.5.1, 6.0.0, 6.0.0.1
    • Fix Version/s: None
    • Component/s: authentication, scripting
    • Labels:
    • Support Ticket IDs:

      Description

      Problem
      When "iplanet-am-auth-shared-state-enabled=true" is set on the Scripted module, the script module will fail to work as there is no callback (when this has a Client script).

      Expected

      Works like any other auth module w/o error
      

      Currently

      Fails to work. What is worst is that the may not be much logging information of the failure. 
      

      Impact/Workaround
      Remove "iplanet-am-auth-shared-state-enabled=true" as the sharedState is always passed along.

      Cause
      When iplanet-am-auth-shared-state-enabled=true is set the Callback are not read in AMLoginModule and hence when the replaceCallback is called on the clientScriptOutput to render the client script the comparison on the state.length is 0 and not 2. and so throws Illegal state.

      So when isSharedStatedEnable() one should probably do a setForceCallback(true) and do a forceCallbackInit() like what is done in LDAP module when rendering callback.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chee-weng.chea C-Weng C
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: