Terms and Conditions stage
This stage evaluates a boolean accepted (true or false).
- Example configuration
-
This stage is configured in a
selfservice.terms.jsonfile in the projectconfdirectory and includes the following parameters:{ "versions" : [ { "version" : "1", "termsTranslations" : { "en" : "Sample terms and conditions" }, "createDate" : "2018-04-10T09:52:25.478Z" } ], "uiConfig" : { "displayName" : "We have updated our terms", "purpose" : "To proceed, accept these terms", "buttonText" : "Accept" }, "active" : "1" }The stage can stand on its own (as it does in the default registration configuration) or be called from the Conditional User Stage with a configuration similar to the following:
{ "name" : "conditionaluser", "identityServiceUrl" : "managed/user", "condition" : { "type" : "terms" }, "evaluateConditionOnField" : "user", "onConditionTrue" : { "name" : "termsAndConditions" } }, - Dependencies
-
Configured as part of the Conditional User Stage. Must have the Patch object stage somewhere downstream. This stage can occur anywhere in a process.
- Requirements
-
Requires Terms and Conditions to be accepted before continuing to the next stage:
-
If
acceptis absent, the stage returns the requirements again. -
If
acceptis present butfalse, the stage generates an exception. It is up to the client to handle that exception. -
If
acceptistrue, this stage puts all the outputs intostateand advances to the next stage.
-
- Outputs
-
TERMS_ACCEPTED,TERMS_DATE, andTERMS_VERSION