Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-12149

"/username: Expecting a value" exception when calling the authenticate function of connectors

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      0
    • Sprint:
      OpenIDM Sprint 7.0-1
    • Support Ticket IDs:

      Description

      When calling the authenticate function of connectors the following error is observed in the logs - 

      Caused by: org.forgerock.openidm.script.ScriptThrownException: /username: Expecting a value

       

      Steps to re-produce - 
      1) create a script & custom endpoint
      ----------

      openidm.action("system/ldap/account", "authenticate", {}, {"username" : "myuser", "password" : "Welcome1"});

      ...(so essentially the same as the JS example in the docs)

      ----------

      {
        "context" : "endpoint/becky",
        "type" : "text/javascript",
        "file" : "script/becky.js"
      }

      ---------

      2) Call the endpoint via REST - 

      ...returns:

      {"code":400,"reason":"Bad Request","message":"/username: Expecting a value","detail":{}}

      ...which is the error the customer reports when using openidm.action

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                travis.haagen Travis Haagen
                Reporter:
                becky.maund Becky Maund
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: