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

RestAuthException: Incorrect number of callbacks found in JSON response

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Expired
    • Affects Version/s: 12.0.0
    • Fix Version/s: None
    • Component/s: authentication, rest
    • Labels:
    • Environment:
      OpenAM 12.0.0-SNAPSHOT Build 10250 (2014-August-26 02:39)
      tomcat 6
      java 1.6

      Description

      ERROR: Rest Authentication Exception
      org.forgerock.openam.forgerockrest.authn.exceptions.RestAuthException: com.sun.identity.authentication.service.AuthException: Too Many Authentication Attempts!! reported in Authentication debug file when attempting Scripted Device Print authentication.

      Steps:
      1. Create sub-realm dp
      2. Add authentication modules: DeviceIdMatch, DeviceIdSave
      3. Add these authn modules and HOTP to authn chain dapService (Datastore - Requisite, Scripted Device Print - Sufficient, HOTP - Required, Device Print Persist - Required)
      4. Add Email service with valid smtp server, username, and password
      5. Add new subject and update with your email address
      6. Attempt to login with newly created user to the sub-realm
      7. Click Login button when it appears
      8. OTP screen appears and then immediately the Login screen re-appears.

      Checking Authentication debug file, I see:

      ERROR: Incorrect number of callbacks found in JSON response
      amAuthREST:08/26/2014 05:08:59:618 PM PDT: Thread[http-18080-5,5,main]
      ERROR: Rest Authentication Exception
      org.forgerock.openam.forgerockrest.authn.exceptions.RestAuthException: Incorrect number of callbacks found in JSON response
              at org.forgerock.openam.forgerockrest.authn.RestAuthCallbackHandlerManager.handleJsonCallbacks(RestAuthCallbackHandlerManager.java:134)
              at org.forgerock.openam.forgerockrest.authn.RestAuthenticationHandler.handleCallbacks(RestAuthenticationHandler.java:308)
              at org.forgerock.openam.forgerockrest.authn.RestAuthenticationHandler.processAuthentication(RestAuthenticationHandler.java:239)
              at org.forgerock.openam.forgerockrest.authn.RestAuthenticationHandler.authenticate(RestAuthenticationHandler.java:161)
              at org.forgerock.openam.forgerockrest.authn.RestAuthenticationHandler.continueAuthentication(RestAuthenticationHandler.java:110)
              at org.forgerock.openam.forgerockrest.authn.restlet.AuthenticationService.authenticate(AuthenticationService.java:125)
              at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.restlet.resource.ServerResource.doHandle(ServerResource.java:503)
              at org.restlet.resource.ServerResource.post(ServerResource.java:1216)
              at org.restlet.resource.ServerResource.doHandle(ServerResource.java:592)
              at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:649)
              at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348)
              at org.restlet.resource.ServerResource.handle(ServerResource.java:952)
              at org.restlet.resource.Finder.handle(Finder.java:246)
              at org.forgerock.openam.rest.service.VersionRouter.handle(VersionRouter.java:112)
              at org.forgerock.openam.rest.service.ServiceRouter$RestletWrapper.handle(ServiceRouter.java:160)
              at org.restlet.routing.Filter.doHandle(Filter.java:159)
              at org.restlet.routing.Filter.handle(Filter.java:206)
      ...
      at org.forgerock.openam.rest.RestEndpointServlet.service(RestEndpointServlet.java:113)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.forgerock.openam.authz.filter.RestAuthorizationDispatcherFilter.doFilter(RestAuthorizationDispatcherFilter.java:173)
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markg Mark Gibson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: