[Linux] After logging into the AAD/AADB2C Standalone project account, debugging stops and some errors appear in the debug console.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 737
- Avg merge
- 18h 40m
- Merged PRs (30d)
- 31
Description
## Environment data
`dotnet --info` output:
```
.NET SDK (reflecting any global.json):
Version: 6.0.414
Commit: bf51579d4c
Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: debian.11-x64
Base Path: /usr/share/dotnet/sdk/6.0.414/
global.json file:
Not found
Host:
Version: 6.0.22
Architecture: x64
Commit: ad40cc35b5
.NET SDKs installed:
6.0.414 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.22 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
```
VS Code version: 1.81.1
C# Extension version: v2.0.376
## OmniSharp log
logcrbug/1173575, non-JS module files deprecated.
Debugging hotkey: Shift+Alt+D (when application has focus)
blazor Loaded 9.14 MB resources
This application was built with linking (tree shaking) disabled. Published applications will be significantly smaller.
info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
Authorization failed. These requirements were not met:
DenyAnonymousAuthorizationRequirement: Requires an authenticated user.
## Steps to reproduce
1. Create Blazor WASM project via Terminal Emulator
`dotnet new blazorwasm -au IndividualB2C --aad-b2c-instance "https://blazorb2cvalidation.b2clogin.com/" -ssp "B2C_1_BlazorSignUpSignInTest" --client-id "b2e38967-fd3d-4bac-b371-50f00c422a90" --domain "blazorb2cvalidation.onmicrosoft.com" -o BlazoADDb2cstand`
2. Open the project using VS Code
```
cd BlazoADDb2cstand
code .
```
4. After C# reloads the project, the IDE requests that assets (launch.json and task.json) should be added to build and debug the project. Select Yes.

5. Update the 'applicationUrl' in the launchSetting.json file as following:

6. F5 -> wait for the page loads successfully,
7. Login the account
Note:
1.This issue also repro on lower versions of C# v2.0.357
2. This issue does not reproduce on lower versions of C# v1.26.0
3. This issue does not reproduce on Windows
4. This issue does not reproduce on Redirect log in Mode
## Expected behavior
After logging into the AAD/AAD B2C Standalone project account, debugging does not stop and there are no errors in the debug console.
## Actual behavior
After logging into the AAD/AADB2C Standalone project account, debugging stops and some errors appear in the debug console.


## Additional context
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.