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

Please expose 'options' to server side scripts.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 14.5.0
    • Fix Version/s: None
    • Component/s: scripting
    • Labels:
      None
    • Environment:
      AM 5.5
    • Support Ticket IDs:

      Description

      (AM 5.5) Customer wants to Configure IP ranges for scripted module and is running into an issue asking 

      I'm trying to create a scripted module with key/value options. It seems like the "options" variable, which is available in the Java auth module API is not available in the JavaScript API. Is this correct?

      If so, what alternatives are available for storing configuration options, for the module to read?   We are creating a custom scripted module, which needs a configurable list of IP addresses.

      Ref.

      https://backstage.forgerock.com/docs/am/5.5/apidocs/com/sun/identity/authentication/spi/AMLoginModule.html#init-javax.security.auth.Subject-java.util.Map-java.util.Map-**

      Escalated case to Sustaining to check/confirm/etc.

      Sustaining: This is correct.  "options" is not exposed to the server side script.  The variable would need to be in the shared state (sharedState) or perhaps obtained via a REST call.
      Note: This is custom code, which is outside of the realm of support and should be referred to PS.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ashley.hale Ashley Hale
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: