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

Scripted decision node script context should have access to the data stored in the secureState object.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: trees
    • Labels:
      None
    • Rank:
      1|i02kwv:

      Description

      The data saved in `transientState` when required later in the authentication tree, across callback boundaries, is promoted into the `secureState` object. At the moment, there is no binding available in the scripting decision node script context that will allow direct or indirect access to the `secureState` object. Since `secureState` represents a special case of `transientState`, and `transientState` data is accessible from the scripting context, there should be a way for the script writer to retrieve values from the secret state.

      TreeContext's getState(String key) or getTransientState(String key) public methods could serve this purpose. The latter appears to be a better candidate, however, because:

      • The script writer already has explicit access to the `sharedState` object.
      • If `sharedState` and `transientState` share keys, the data stored in the former will be inaccessible with the `getState(String key)` method.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              konstantin.lapine Konstantin Lapine
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: