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

Dev-Guide UserSelfService registration - JSON response only shown for setting ''selfServiceUserRegistrationDestination=default"

    Details

    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      No (add reasons in the comment)

      Description

      Bug description

      The JSON response shown at only covers the default setting ('Destination After Successful Self-Registration') for 'Destination After Successful Self-Registration' configuration of User Registration of the User Self Service

      How to reproduce the issue

      1. Configure OpenAM
      2. Create sub-realm '/sub1' (this is not really needed, but it covers the customers use-case)
      3. Register 'User Self Service' in sub-realm '/sub1'
      4. Perform REST registration call as described in DevGuide (e.g. https://backstage.forgerock.com/docs/openam/13.5/dev-guide/#user-self-registration-13.5)
        curl 'http://openam1350.test.xyz:8080/openam/json/sub1/selfservice/userRegistration?_action=submitRequirements' -H 'Content-Type: application/json' --data '{"input":{"user":{"username":"20372NSNZKGMJHH23425","givenName":"Paula","sn":"Sample3","userPassword":"Welcome011","inetUserStatus":"Active"}}}'
        
      Expected behaviour

      The DevGuide should cover the JSON responses for all settings of ' 'Destination After Successful Self-Registration'

      selfServiceUserRegistrationDestination=default
      {
        "type": "selfRegistration",
        "tag": "end",
        "status": {
          "success": true
        },
        "additions": {}
      }
      
      selfServiceUserRegistrationDestination=auto-login
      {
        "type": "autoLoginStage",
        "tag": "end",
        "status": {
          "success": true
        },
        "additions": {
          "tokenId": "AQIC5wM2LY4SfcxWbUGm-TlPWlzL0y0FYBFzvlMZn92eMjY.*AAJTSQACMDEAAlNLABM3NzI1NDk4ODYwNjM0NTQ0Mzg2AAJTMQAA*",
          "successUrl": "/openam/console"
        }
      }
      
      selfServiceUserRegistrationDestination=login
      {
        "type": "selfRegistration",
        "tag": "end",
        "status": {
          "success": true
        },
        "additions": {}
      }
      
      Current behaviour

      JSON response is only shown for setting 'selfServiceUserRegistrationDestination=default'

        Attachments

          Activity

            People

            • Assignee:
              austingene Gene Hirayama
              Reporter:
              bthalmayr Bernhard Thalmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: