You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/one-time-password-technical-profile.md
+40-41Lines changed: 40 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: celestedg
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: reference
12
-
ms.date: 02/10/2020
12
+
ms.date: 03/09/2020
13
13
ms.author: mimart
14
14
ms.subservice: B2C
15
15
---
@@ -65,15 +65,15 @@ The **OutputClaimsTransformations** element may contain a collection of **Output
65
65
66
66
### Metadata
67
67
68
-
The following settings can be used to configure code generation and maintenance:
68
+
The following settings can be used to configure code generation mode:
69
69
70
70
| Attribute | Required | Description |
71
71
| --------- | -------- | ----------- |
72
72
| CodeExpirationInSeconds | No | Time in seconds until code expiration. Minimum: `60`; Maximum: `1200`; Default: `600`. |
73
73
| CodeLength | No | Length of the code. The default value is `6`. |
74
74
| CharacterSet | No | The character set for the code, formatted for use in a regular expression. For example, `a-z0-9A-Z`. The default value is `0-9`. The character set must include a minimum of 10 different characters in the set specified. |
75
75
| NumRetryAttempts | No | The number of verification attempts before the code is considered invalid. The default value is `5`. |
76
-
| Operation | Yes | The operation to be performed. Possible values: `GenerateCode`, or `VerifyCode`. |
76
+
| Operation | Yes | The operation to be performed. Possible value: `GenerateCode`. |
77
77
| ReuseSameCode | No | Whether a duplicate code should be given rather than generating a new code when given code has not expired and is still valid. The default value is `false`. |
78
78
79
79
### Returning error message
@@ -86,22 +86,22 @@ The following example `TechnicalProfile` is used for generating a code:
@@ -128,46 +128,45 @@ The **OutputClaimsTransformations** element may contain a collection of **Output
128
128
129
129
### Metadata
130
130
131
-
The following settings can be used to configure the error message displayed upon code verification failure:
131
+
The following settings can be used to code verification mode:
132
132
133
133
| Attribute | Required | Description |
134
134
| --------- | -------- | ----------- |
135
-
| UserMessageIfSessionDoesNotExist | No | The message to display to the user if the code verification session has expired. It is either the code has expired or the code has never been generated for a given identifier. |
136
-
| UserMessageIfMaxRetryAttempted | No | The message to display to the user if they've exceeded the maximum allowed verification attempts. |
137
-
| UserMessageIfInvalidCode | No | The message to display to the user if they've provided an invalid code. |
135
+
| Operation | Yes | The operation to be performed. Possible value: `VerifyCode`. |
138
136
139
-
### Returning error message
140
137
141
-
As described in [Metadata](#metadata), you can customize error message shown to the user for different error cases. You can further localize those messages by prefixing the locale, for example:
138
+
### Error messages
142
139
143
-
```XML
144
-
<ItemKey="en.UserMessageIfInvalidCode">Wrong code has been entered.</Item>
145
-
```
140
+
The following settings can be used to configure the error messages displayed upon code verification failure. The metadata should be configured in the [self-asserted](self-asserted-technical-profile.md) technical profile. The error messages can be [localized](localization-string-ids.md#one-time-password-error-messages).
141
+
142
+
| Attribute | Required | Description |
143
+
| --------- | -------- | ----------- |
144
+
| UserMessageIfSessionDoesNotExist | No | The message to display to the user if the code verification session has expired. It is either the code has expired or the code has never been generated for a given identifier. |
145
+
| UserMessageIfMaxRetryAttempted | No | The message to display to the user if they've exceeded the maximum allowed verification attempts. |
146
+
| UserMessageIfInvalidCode | No | The message to display to the user if they've provided an invalid code. |
147
+
|UserMessageIfSessionConflict|No| The message to display to the user if the code cannot be verified.|
146
148
147
149
### Example
148
150
149
151
The following example `TechnicalProfile` is used for verifying a code:
0 commit comments