dotnet / dotnet/vscode-csharp

[Linux] After logging into the AAD/AADB2C Standalone project account, debugging stops and some errors appear in the debug console.

Open
#6,200 12 comments 0 reactions 1 assignee Claimed by @ryzngard View on GitHub
Debugger Razor Triaged
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.
![image](https://github.com/dotnet/vscode-csharp/assets/93763301/538a7f2a-90a8-4892-a70e-de4988e233d1)
5. Update the 'applicationUrl' in the launchSetting.json file as following:
![image](https://github.com/aspnet/AspNetCore-ManualTests/assets/93763301/232ad100-c935-44be-915a-95f8f0ce3ba6)
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.
![bug](https://github.com/dotnet/vscode-csharp/assets/93763301/b729d9d6-36f6-4022-8805-03dc570dcdac)
![image](https://github.com/dotnet/vscode-csharp/assets/93763301/1e527e7d-c13a-4d4b-a786-dabca8b39af1)

## Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.