Skip to content

Commit c075ee6

Browse files
committed
link fix + copy edit
1 parent abfc532 commit c075ee6

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

articles/active-directory/develop/msal-authentication-flows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ Apart from the [Integrated Windows Authentication constraints](#integrated-windo
229229

230230
### Azure AD B2C specifics
231231

232-
For more information on using MSAL.NET and Azure AD B2C, see [Using ROPC with Azure AD B2C (MSAL.NET)](msal-net-aad-b2c-considerations.md#resource-owner-password-credentials-ropc-with-azure-ad-b2c).
232+
For more information on using ROPC in MSAL.NET and Azure AD B2C, see [Using ROPC with Azure AD B2C](msal-net-aad-b2c-considerations.md#resource-owner-password-credentials-ropc).

articles/active-directory/develop/msal-net-aad-b2c-considerations.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ ms.author: jeferrie
1515
ms.reviewer: saeeda
1616
ms.custom: aaddev
1717
# Customer intent: As an application developer, I want to learn about specific considerations when using
18-
# Azure AD B2C and MSAL.NET so I can decide if this platform meets my application development needs and requirements.
18+
# Azure AD B2C and MSAL.NET so I can decide if this platform meets my application development
19+
# needs and requirements.
1920
---
2021

2122
# Use MSAL.NET to sign in users with social identities
@@ -35,11 +36,11 @@ The authority to use is `https://{azureADB2CHostname}/tfp/{tenant}/{policyName}`
3536
- `tenant` is the full name of the Azure AD B2C tenant (for example, `{your-tenant-name}.onmicrosoft.com`) or the GUID for the tenant,
3637
- `policyName` the name of the policy or user flow to apply (for instance "b2c_1_susi" for sign-up/sign-in).
3738

38-
For more information on the Azure AD B2C authorities, see this [documentation](/azure/active-directory-b2c/b2clogin).
39+
For more information about Azure AD B2C authorities, see [Set redirect URLs to b2clogin.com](../../active-directory-b2c/b2clogin.com).
3940

4041
## Instantiating the application
4142

42-
When building the application, you need to provide the authority.
43+
Provide the authority by calling `WithB2CAuthority()` when you create the application object:
4344

4445
```csharp
4546
// Azure AD B2C Coordinates
@@ -81,13 +82,13 @@ In the preceding code snippet:
8182
```csharp
8283
private IAccount GetAccountByPolicy(IEnumerable<IAccount> accounts, string policy)
8384
{
84-
foreach (var account in accounts)
85-
{
86-
string userIdentifier = account.HomeAccountId.ObjectId.Split('.')[0];
87-
if (userIdentifier.EndsWith(policy.ToLower()))
88-
return account;
89-
}
90-
return null;
85+
foreach (var account in accounts)
86+
{
87+
string userIdentifier = account.HomeAccountId.ObjectId.Split('.')[0];
88+
if (userIdentifier.EndsWith(policy.ToLower()))
89+
return account;
90+
}
91+
return null;
9192
}
9293
```
9394

0 commit comments

Comments
 (0)