Skip to content

Commit b020371

Browse files
authored
Update custom-policy-configure-user-input.md
Style fixes
1 parent d066e90 commit b020371

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/active-directory-b2c/custom-policy-configure-user-input.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gathering initial data from your users is achieved using the sign-up or sign-in
2424
1. Define a 'city' claim.
2525
1. Ask the user for their city.
2626
1. Persist the city to the user profile in Azure AD B2C directory.
27-
1. Read the city claim from the user profile on each sign in.
27+
1. Read the city claim from the user profile on each sign-in.
2828
1. Return the city to your relying party application after sign in or sign up.
2929

3030
## Prerequisites
@@ -67,7 +67,7 @@ The following technical profiles are [self-asserted](self-asserted-technical-pro
6767
- **SelfAsserted-Social** - Federated account first-time user sign-in.
6868
- **SelfAsserted-ProfileUpdate** - Edit profile flow.
6969

70-
To collect the City claim during Sign Up, it must be added as an output claim to the `LocalAccountSignUpWithLogonEmail` technical profile. Override this technical profile in the extension file. Specify the entire list of output claims to control the order the claims are presented on the screen. Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
70+
To collect the City claim during sign-up, it must be added as an output claim to the `LocalAccountSignUpWithLogonEmail` technical profile. Override this technical profile in the extension file. Specify the entire list of output claims to control the order the claims are presented on the screen. Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
7171

7272
```xml
7373
<ClaimsProvider>
@@ -163,11 +163,9 @@ Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
163163

164164
## Include a claim in the token
165165

166-
To return the city claim back to the relying party application, add an output claim to the <em>`SocialAndLocalAccounts/`**`SignUpOrSignIn.xml`**</em> file. This will issue the claim into the token after a successful user journey, and will be sent to the application. Modify the technical profile element within the relying party section to add the city as an output claim.
167-
168-
Your final relying party should look like the following:
166+
To return the city claim back to the relying party application, add an output claim to the <em>`SocialAndLocalAccounts/`**`SignUpOrSignIn.xml`**</em> file. The output claim will be added into the token after a successful user journey, and will be sent to the application. Modify the technical profile element within the relying party section to add the city as an output claim.
169167

170-
```xml
168+
```xml
171169
<RelyingParty>
172170
<DefaultUserJourney ReferenceId="SignUpOrSignIn" />
173171
<TechnicalProfile Id="PolicyProfile">
@@ -186,7 +184,7 @@ Your final relying party should look like the following:
186184
<SubjectNamingInfo ClaimType="sub" />
187185
</TechnicalProfile>
188186
</RelyingParty>
189-
```
187+
```
190188

191189
## Test the custom policy
192190

@@ -198,7 +196,7 @@ Your final relying party should look like the following:
198196
2. Select the sign-up or sign-in policy that you uploaded, and click the **Run now** button.
199197
3. You should be able to sign up using an email address.
200198

201-
The sign-up screen should look similar to this:
199+
The sign-up screen should look similar to the following screenshot:
202200

203201
![Screenshot of modified sign-up option](./media/custom-policy-configure-user-input/signup-with-city-claim-dropdown-example.png)
204202

0 commit comments

Comments
 (0)