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

Self Service Registration / Auto Login request fails to create user.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0, 6.0.0.1, 7.0.0
    • Fix Version/s: 6.0.0.6
    • Component/s: documentation
    • Labels:
    • Target Version/s:
    • Verified Version/s:
    • Support Ticket IDs:

      Description

      This was working in 6.0 but starts failing in 6.0.0.1.

      Steps to reproduce:

      • install vanilla 6.5
      • Log into Admin UI and configure Self-Service Registration
      • Use only the defaults such that "Auto Login" is allowed
      • Perform the following rest request
      POST /openidm/selfservice/registration?_action=submitRequirements HTTP/1.1
      {  
         "input":{  
            "user":{  
               "givenName":"Gary",
               "userName":"gsully",
               "sn":"Sully",
               "mail":"gs@fr.com",
               "password":"Welcome1",
               "preferences":{  
                  "updates":false,
                  "marketing":false
               }
            },
            "kba":[  
               {  
                  "answer":"asdf",
                  "questionId":"1"
               },
               {  
                  "answer":"asdf",
                  "questionId":"2"
               }
            ]
         }
      

      Response is HTTP 200:

      {
          "type": "allInOneRegistration",
          "tag": "initial",
          "requirements": {
              "$schema": "http://json-schema.org/draft-04/schema#",
              "description": "All-In-One Registration",
              "type": "object",
              "properties": {
                  "kba": {
                      "type": "array",
                      "minItems": 2,
                      "items": {
                          "type": "object",
                          "oneOf": [
                              {
                                  "$ref": "#/definitions/systemQuestion"
                              },
                              {
                                  "$ref": "#/definitions/userQuestion"
                              }
                          ]
                      },
                      "questions": [
                          {
                              "question": {
                                  "en": "What's your favorite color?",
                                  "en_GB": "What is your favourite colour?",
                                  "fr": "Quelle est votre couleur préférée?"
                              },
                              "id": "1"
                          },
                          {
                              "question": {
                                  "en": "Who was your first employer?"
                              },
                              "id": "2"
                          }
                      ]
                  },
                  "user": {
                      "default": {},
                      "description": "User Object",
                      "type": "object"
                  }
              },
              "required": [
                  "kba"
              ],
              "definitions": {
                  "systemQuestion": {
                      "description": "System Question",
                      "type": "object",
                      "required": [
                          "questionId",
                          "answer"
                      ],
                      "properties": {
                          "questionId": {
                              "description": "Id of predefined question",
                              "type": "string"
                          },
                          "answer": {
                              "description": "Answer to the referenced question",
                              "type": "string"
                          }
                      },
                      "additionalProperties": false
                  },
                  "userQuestion": {
                      "description": "User Question",
                      "type": "object",
                      "required": [
                          "customQuestion",
                          "answer"
                      ],
                      "properties": {
                          "answer": {
                              "description": "Answer to the question",
                              "type": "string"
                          },
                          "customQuestion": {
                              "description": "Question defined by the user",
                              "type": "string"
                          }
                      },
                      "additionalProperties": false
                  },
                  "providers": {
                      "type": "array",
                      "items": {
                          "type": "object",
                          "oneOf": []
                      }
                  }
              },
              "socialRegistrationEnabled": false,
              "registrationForm": null,
              "registrationProperties": {
                  "properties": {
                      "userName": {
                          "title": "Username",
                          "description": "Username",
                          "viewable": true,
                          "type": "string",
                          "searchable": true,
                          "userEditable": true,
                          "minLength": 1,
                          "usageDescription": "",
                          "isPersonal": true,
                          "policies": [
                              {
                                  "policyId": "unique"
                              },
                              {
                                  "policyId": "no-internal-user-conflict"
                              },
                              {
                                  "policyId": "cannot-contain-characters",
                                  "params": {
                                      "forbiddenChars": [
                                          "/"
                                      ]
                                  }
                              }
                          ]
                      },
                      "givenName": {
                          "title": "First Name",
                          "description": "First Name",
                          "viewable": true,
                          "type": "string",
                          "searchable": true,
                          "userEditable": true,
                          "usageDescription": "",
                          "isPersonal": true
                      },
                      "sn": {
                          "title": "Last Name",
                          "description": "Last Name",
                          "viewable": true,
                          "type": "string",
                          "searchable": true,
                          "userEditable": true,
                          "usageDescription": "",
                          "isPersonal": true
                      },
                      "mail": {
                          "title": "Email Address",
                          "description": "Email Address",
                          "viewable": true,
                          "type": "string",
                          "searchable": true,
                          "userEditable": true,
                          "usageDescription": "",
                          "isPersonal": true,
                          "policies": [
                              {
                                  "policyId": "valid-email-address-format"
                              }
                          ]
                      }
                  },
                  "required": [
                      "userName",
                      "givenName",
                      "sn",
                      "mail"
                  ]
              },
              "registrationPreferences": {
                  "updates": {
                      "description": "Send me news and updates",
                      "type": "boolean"
                  },
                  "marketing": {
                      "description": "Send me special offers and services",
                      "type": "boolean"
                  }
              },
              "stages": [
                  "kbaSecurityAnswerDefinitionStage",
                  "idmUserDetails"
              ]
          },
          "token": "eyJ0eXAiOiJKV1QiLCJjdHkiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ZXlKMGVYQWlPaUpLVjFRaUxDSmxibU1pT2lKQk1USTRRMEpETFVoVE1qVTJJaXdpWVd4bklqb2lVbE5CTVY4MUluMC5aS0htWUpnZkZEcDhNc25fUDk1U3pRZU1BbjlmZkUzdDdKS0VtSndjOVZrX1ItRVM4V1hNN0FlUm9oa042UTlIZHNxY3VtS1ZJNUFTR0tRNDdjdGlWQjM1alZ2bXlxUjFPQTkyUlloemFxalFpQnRXSWVQZlI3RmNuX2cwWnp3YTNwcTI3VmE2MlNtZ3RCSWp0STBqQVMzZjNYRDNoeUp0RUVkdlAwdFRibUdmODJRalZQNHJLZ0VuYy14YXBnLXZhWW5WMmxJV3U5MHR5MzdlQXo3cm9zRVRaUFJ6azg1VXp5VDUtdlMwbEtzckQ1WXY2TEdfSmp1NWZFQ2JEMkZvVHg0UDlPOUg4dDNLSzlYRTZtamwzUnlaSURub0RieUI4LW1LRm0yWlZMSnNIenBmcmNXU1lMbkFXaTdPTzdES2pLeVFUOHdHcWNfYnFuMFB4eWM5T3cubF9Tc1k1QU5pNHhvT2c3RG4tbGVSdy5CT2hhY3c4TWdRdE9zM1NJSHFlZmkxUTREUmhqcVdOVXV3TV8zc0lwOFhScnktOEZ5V0Q0SzVPbVRTRUZ0RGFzandyWGZRRHR6QTUzcHRDSjFGdmZRQTF4THFld0ZUaHNaZ0c2Tm1kN3MyT0RkUlpyeG5ObU45d3RLLXlFZlVoZVk2Q0ZpcHREaC1FQnNpei1rS1lPNFlhdW9kUEs5YjUtTmZ5Q2NvNndNYXcuOXhpQ0IyRVV1SEZoOG02OGxCUHl0dw.8KemHT_cT--LiFZUZi1Or4EdM2lNNDVRtYVnlU46B18"
      }
      

      Expected Results: User is created
      Actual Results: No user is created

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Lana Lana Frost
                Reporter:
                mark.offutt Mark Offutt [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: