Skip to content

Commit 3bd308f

Browse files
authored
Aligning default OTP metadata
1 parent 8e782da commit 3bd308f

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

articles/active-directory-b2c/custom-email-mailjet.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,12 @@ Add the following technical profiles to the `<ClaimsProviders>` element.
332332
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.OneTimePasswordProtocolProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
333333
<Metadata>
334334
<Item Key="Operation">GenerateCode</Item>
335-
<Item Key="CodeExpirationInSeconds">1200</Item>
335+
<Item Key="CodeExpirationInSeconds">600</Item>
336336
<Item Key="CodeLength">6</Item>
337337
<Item Key="CharacterSet">0-9</Item>
338-
<Item Key="ReuseSameCode">true</Item>
339338
<Item Key="NumRetryAttempts">5</Item>
339+
<Item Key="NumCodeGenerationAttempts">10</Item>
340+
<Item Key="ReuseSameCode">false</Item>
340341
</Metadata>
341342
<InputClaims>
342343
<InputClaim ClaimTypeReferenceId="email" PartnerClaimType="identifier" />

articles/active-directory-b2c/custom-email-sendgrid.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,13 @@ Add the following technical profiles to the `<ClaimsProviders>` element.
320320
<DisplayName>Generate one time password</DisplayName>
321321
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.OneTimePasswordProtocolProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
322322
<Metadata>
323-
<Item Key="Operation">GenerateCode</Item>
324-
<Item Key="CodeExpirationInSeconds">600</Item>
325-
<Item Key="CodeLength">6</Item>
326-
<Item Key="CharacterSet">0-9</Item>
327-
<Item Key="NumRetryAttempts">5</Item>
328-
<Item Key="NumCodeGenerationAttempts">10</Item>
329-
<Item Key="ReuseSameCode">false</Item>
323+
<Item Key="Operation">GenerateCode</Item>
324+
<Item Key="CodeExpirationInSeconds">600</Item>
325+
<Item Key="CodeLength">6</Item>
326+
<Item Key="CharacterSet">0-9</Item>
327+
<Item Key="NumRetryAttempts">5</Item>
328+
<Item Key="NumCodeGenerationAttempts">10</Item>
329+
<Item Key="ReuseSameCode">false</Item>
330330
</Metadata>
331331
<InputClaims>
332332
<InputClaim ClaimTypeReferenceId="email" PartnerClaimType="identifier" />

articles/active-directory-b2c/one-time-password-technical-profile.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ The following settings can be used to configure code generation mode:
7070

7171
| Attribute | Required | Description |
7272
| --------- | -------- | ----------- |
73+
| Operation | Yes | The operation to be performed. Possible value: `GenerateCode`. |
7374
| CodeExpirationInSeconds | No | Time in seconds until code expiration. Minimum: `60`; Maximum: `1200`; Default: `600`. Every time a code is provided (same code using `ReuseSameCode`, or a new code), the code expiration is extended. This time is also used to set retry timeout (once max attempts are reached, user is locked out from attempting to obtain new codes until this time expires) |
7475
| CodeLength | No | Length of the code. The default value is `6`. |
7576
| 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. |
7677
| NumRetryAttempts | No | The number of verification attempts before the code is considered invalid. The default value is `5`. For example, if you set NumRetryAttempts to 2 it will allow you only 2 attempts in total (first + 1 retry). For the 3rd attempt it will throw max attempts reached irrespective of whether the code is correct or not.|
77-
| NumCodeGenerationAttempts | No | The number of maximum code generation attempts per identifier. The default value is 10 if not specified. |
78-
| Operation | Yes | The operation to be performed. Possible value: `GenerateCode`. |
78+
| NumCodeGenerationAttempts | No | The number of maximum code generation attempts per identifier. The default value is `10` if not specified. |
7979
| ReuseSameCode | No | Whether the same 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`. |
8080

8181

@@ -94,7 +94,7 @@ The following example `TechnicalProfile` is used for generating a code:
9494
<Item Key="CodeLength">6</Item>
9595
<Item Key="CharacterSet">0-9</Item>
9696
<Item Key="NumRetryAttempts">5</Item>
97-
<Item Key="NumCodeGenerationAttempts">15</Item>
97+
<Item Key="NumCodeGenerationAttempts">10</Item>
9898
<Item Key="ReuseSameCode">false</Item>
9999
</Metadata>
100100
<InputClaims>

0 commit comments

Comments
 (0)