Module: Editor
Version: 4.1.0 +
Description
The VisionReference 'ChangeAccount' has to be used to change an existing account. An user has already created and activated an account and wants to make changes to this account (for example changing the password). From Futurama version 5.3.0 this VisionReference both can be used when Futurama Accounts is used to authenticate the user and if another identity provider is used to authenticate an user. With Futurama Accounts it is important to both store the e-mail address of the user and the password. The password is used to secure the access to the application. In the situation of another identity provider this identity provider identifies the user and there is no password necessary to store in Futurama. However, it may be desirable to store the e-mail address of the user. In this situation the 'ChangeAccount' VisionReference can be used where the parameter UseExternalSecurity (see below) gets value TRUE.
Parameters
LogIn:
The username of the account.
Password:
The password of the account
RepeatedPassword:
The user is required to repeat this password to confirm it.
Email:
The email address for the account.
Repeated Email:
The user is required to repeat his email address.
Question:
The question the user choose that will be used as an extra verification .
Answer:
The answer the user had to the previous question.
UseExternalSecurity (from version 5.3.0):
Default value is FALSE. If TRUE then another identity provider is used to authenticate the user. If FALSE then Futurama Accounts is used for the authentication of the user. If UseExternalSecurity is TRUE, the parameters 'Password', 'RepeatedPassword', 'Question' and 'Answer' don't have to be filled in.
Response
Format
<Response xmlns="http://www.actuit.nl/futurama/vision/service/response/1.0">
<ResultCode code="00000" success="true">
<Description>Success</Description>
</ResultCode>
<Result xsi:type="ChangeAccountResult"/>
</Response>
Within the Result element you find the result of your VisionReference webservice call. Use soapUI to get a quick overview of the responses (see the paragraph 'Example soapUI message').
Return codes
The following return codes can be encountered:
- 00000 - GeneralSuccess: The operation completed successfully.
- 01000 - GeneralFailError: The operation caused an error. See the error log of the Vision Management Site for more details.
- 01999 - GeneralFailError: The operation caused an error. See the error log of the Vision Management Site for more details.
- 11010 - AccountDoesNotExist: This account does not exist.
- 11011 - AccountNotRelatedToApp: The account exists, but is not related to this application.
- 11012 - AccountIsNotUnique: The are multiple accounts existing in this application.
- 11050 - StatusInvalid - Account status is invalid for this operation.
- 11150 - PasswordDoesNotMeetRequirements: The password does not meet the minimum requirement (for example minimum signs, or signs not allowed).
- 11151 - EmailPatternInvalid - The email pattern is not valid (should be of the form email@address.com).
- 11152 - AnswerIsEmpty - Answer was not filled in by the user.
- 11153 - PasswordIncorrectlyRepeated - The repeated password does not match the previous one.
- 11154 - EmailIncorrectlyRepeated - The repeated email does not match the previous one.
Example soapUI message
In the preceding paragraph the parameters of the VisionReference are listed. The values of these parameters are used by Futurama to compose an XML-message. With soapUI it is possible to see the responses depending on the values of the parameters. Below you find an example of an XML-message. This example can be used in your soapUI project to test the connection with Vision and to see the response for a certain combination of parameters.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Futurama path="\\servername\path\futurama" version="1.0" xmlns="http://www.actuit.nl/futurama/vision/service/header/1.0"/>
<Document path="\\servername\path\data.xml" version="1.0" xmlns="http://www.actuit.nl/futurama/vision/service/header/1.0"/>
</s:Header>
<s:Body>
<Request method="ChangeAccount" version="1.0" module="Accounts" xmlns="http://www.actuit.nl/futurama/vision/service/request/1.0">
<Parameter name="LogIn" value="User123" type="System.String"/>
<Parameter name="Password" value="Password123" type="System.String"/>
<Parameter name="RepeatedPassword" value="Password123" type="System.String"/>
<Parameter name="Email" value="email@address.com" type="System.String"/>
<Parameter name="RepeatedEmail" value="email@address.com" type="System.String"/>
<Parameter name="Question" value="What is your mothers birthplace?" type="System.String"/>
<Parameter name="Answer" value="Birthplace" type="System.String"/>
<Parameter name="UseExternalSecurity" value="False" type="System.Boolean"/>
</Request>
</s:Body>
</s:Envelope>
Within the Header element you find an element 'Document' and an element 'Futurama'. For these elements you have to fill in the path of the Document and the Futurama respectively you also configured in the Apps and Futuramas tab of the Vision Management Site. Within the Request element you find the parameters for this VisionReference. By changing the values of these parameters you can execute different webservice calls. If UseExternalSecurity is TRUE, the parameters 'Password', 'RepeatedPassword', 'Question' and 'Answer' don't have to be filled in.