Skip to content

Commit 6d271f4

Browse files
authored
Merge pull request #17999 from dotnet/master
2 parents f4b37c5 + 4d427dd commit 6d271f4

7 files changed

Lines changed: 27 additions & 41 deletions

aspnetcore/includes/blazor-security/fetchdata-component.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,3 @@ If the request failed because the token couldn't be provisioned without user int
3939
}
4040
}
4141
```
42-
43-
For more information, see [Save app state before an authentication operation](xref:security/blazor/webassembly/additional-scenarios#save-app-state-before-an-authentication-operation).

aspnetcore/includes/blazor-security/troubleshoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ One approach to prevent lingering cookies and site data from interfering with te
2020
* In the **Arguments** field, provide the command-line option that the browser uses to open in incognito or private mode and the URL of the app. For example:
2121
* Google Chrome – `--incognito --new-window https://localhost:5001`
2222
* Mozilla Firefox – `-private -url https://localhost:5001`
23-
* Provide a name in the **Friendly name** field. For example, `Firefox PRIVATE`.
23+
* Provide a name in the **Friendly name** field. For example, `Firefox Auth Testing`.
2424
* Select the **OK** button.
2525
* To avoid having to select the browser profile for each iteration of testing with an app, set the profile as the default with the **Set as Default** button.
2626
* Make sure that the browser is closed by the IDE between any change to the app, test user, or provider configuration.

aspnetcore/security/blazor/webassembly/hosted-with-azure-active-directory-b2c.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,6 @@ Support for authenticating users is registered in the service container with the
245245
```csharp
246246
builder.Services.AddMsalAuthentication(options =>
247247
{
248-
var authentication = options.ProviderOptions.Authentication;
249-
authentication.Authority =
250-
"{AAD B2C INSTANCE}{DOMAIN}/{SIGN UP OR SIGN IN POLICY}";
251-
authentication.ClientId = "{CLIENT APP CLIENT ID}";
252-
authentication.ValidateAuthority = false;
253-
254248
builder.Configuration.Bind("AzureAdB2C", options.ProviderOptions.Authentication);
255249
options.ProviderOptions.DefaultAccessTokenScopes.Add("{SCOPE URI}");
256250
});

aspnetcore/security/blazor/webassembly/hosted-with-azure-active-directory.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,23 +246,23 @@ Configuration is supplied by the *wwwroot/appsettings.json* file:
246246

247247
```json
248248
{
249-
"AzureAd": {
250-
"Authority": "https://login.microsoftonline.com/{TENANT ID}",
251-
"ClientId": "{CLIENT APP CLIENT ID}",
252-
"ValidateAuthority": true
253-
}
249+
"AzureAd": {
250+
"Authority": "https://login.microsoftonline.com/{TENANT ID}",
251+
"ClientId": "{CLIENT APP CLIENT ID}",
252+
"ValidateAuthority": true
253+
}
254254
}
255255
```
256256

257257
Example:
258258

259259
```json
260260
{
261-
"AzureAd": {
262-
"Authority": "https://login.microsoftonline.com/e86c78e2-...-918e0565a45e",
263-
"ClientId": "4369008b-21fa-427c-abaa-9b53bf58e538",
264-
"ValidateAuthority": true
265-
}
261+
"AzureAd": {
262+
"Authority": "https://login.microsoftonline.com/e86c78e2-...-918e0565a45e",
263+
"ClientId": "4369008b-21fa-427c-abaa-9b53bf58e538",
264+
"ValidateAuthority": true
265+
}
266266
}
267267
```
268268

aspnetcore/security/blazor/webassembly/standalone-with-azure-active-directory-b2c.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ Support for authenticating users is registered in the service container with the
7272
```csharp
7373
builder.Services.AddMsalAuthentication(options =>
7474
{
75-
var authentication = options.ProviderOptions.Authentication;
76-
authentication.Authority =
77-
"{AAD B2C INSTANCE}{DOMAIN}/{SIGN UP OR SIGN IN POLICY}";
78-
authentication.ClientId = "{CLIENT ID}";
79-
authentication.ValidateAuthority = false;
80-
8175
builder.Configuration.Bind("AzureAdB2C", options.ProviderOptions.Authentication);
8276
});
8377
```

aspnetcore/security/blazor/webassembly/standalone-with-azure-active-directory.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ Configuration is supplied by the *wwwroot/appsettings.json* file:
8383

8484
```json
8585
{
86-
"AzureAd": {
87-
"Authority": "https://login.microsoftonline.com/{TENANT ID}",
88-
"ClientId": "{CLIENT ID}"
89-
}
86+
"AzureAd": {
87+
"Authority": "https://login.microsoftonline.com/{TENANT ID}",
88+
"ClientId": "{CLIENT ID}"
89+
}
9090
}
9191
```
9292

9393
Example:
9494

9595
```json
9696
{
97-
"AzureAd": {
98-
"Authority": "https://login.microsoftonline.com/e86c78e2-...-918e0565a45e",
99-
"ClientId": "41451fa7-82d9-4673-8fa5-69eff5a761fd"
100-
}
97+
"AzureAd": {
98+
"Authority": "https://login.microsoftonline.com/e86c78e2-...-918e0565a45e",
99+
"ClientId": "41451fa7-82d9-4673-8fa5-69eff5a761fd"
100+
}
101101
}
102102
```
103103

aspnetcore/security/blazor/webassembly/standalone-with-microsoft-accounts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,21 @@ Configuration is supplied by the *wwwroot/appsettings.json* file:
8585

8686
```json
8787
{
88-
"AzureAd": {
89-
"Authority": "https://login.microsoftonline.com/common",
90-
"ClientId": "{CLIENT ID}"
91-
}
88+
"AzureAd": {
89+
"Authority": "https://login.microsoftonline.com/common",
90+
"ClientId": "{CLIENT ID}"
91+
}
9292
}
9393
```
9494

9595
Example:
9696

9797
```json
9898
{
99-
"AzureAd": {
100-
"Authority": "https://login.microsoftonline.com/common",
101-
"ClientId": "41451fa7-82d9-4673-8fa5-69eff5a761fd"
102-
}
99+
"AzureAd": {
100+
"Authority": "https://login.microsoftonline.com/common",
101+
"ClientId": "41451fa7-82d9-4673-8fa5-69eff5a761fd"
102+
}
103103
}
104104
```
105105

0 commit comments

Comments
 (0)