Skip to content

Commit 1b959bc

Browse files
committed
Improve comments
1 parent 7f305ac commit 1b959bc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

active-directory-b2c-wpf/App.xaml.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public partial class App : Application
2727
private static readonly string ClientId = "841e1190-d73a-450c-9d68-f5cf16b78e81";
2828

2929
/// <summary>
30-
/// Should be one of the choices on the Azure AD B2c / App(Keten) / Authentication blade
30+
/// Should be one of the choices on the Azure AD B2c / [This App] / Authentication blade
3131
/// </summary>
3232
private static readonly string RedirectUri = "https://fabrikamb2c.b2clogin.com/oauth2/nativeclient";
3333

@@ -39,7 +39,11 @@ public partial class App : Application
3939
public static string PolicyResetPassword = "b2c_1_reset";
4040

4141
/// <summary>
42-
/// Note: AcquireTokenInteractive will fail to get the AccessToken if "Admin Consent" has not been granted to this scope:
42+
/// Note: AcquireTokenInteractive will fail to get the AccessToken if "Admin Consent" has not been granted to this scope. To achieve this:
43+
///
44+
/// 1st: Azure AD B2C / App registrations / [API App] / Expose an API / Add a scope
45+
/// 2nd: Azure AD B2C / App registrations / [This App] / API Permissions / Add a permission / My APIs / [API App] / Select & Add Permissions
46+
/// 3rd: Azure AD B2C / App registrations / [This App] / API Permissions / ... (next to add a permission) / Grant Admin Consent for [tenant]
4347
/// </summary>
4448
public static string[] ApiScopes = { "https://fabrikamb2c.onmicrosoft.com/helloapi/demo.read" };
4549

0 commit comments

Comments
 (0)