dotnet / dotnet/sdk

[WebToolsE2E][Aspire] When running dotnet watch for Aspire Starter App, the dashboard URL gets opened without the login token applied

Open
#46,094 1 comment 0 reactions 0 assignees View on GitHub
Area-Watch Aspire untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

**REGRESSION INFO**
Not a regression. Also reproduces with SDK 9.0.102 (included in VS 17.12.4)

**INSTALL STEPS**

1. Clean machine: Win11 x64 23h2 ENU
1. Install SDK 9.0.200-preview.0.25057.12 (was included as part of my install of VS 17.13 Preview 3 candidate build, Web workload)
1. Install Aspire 9 templates
- `dotnet new install Aspire.ProjectTemplates --force`

**REPRO STEPS**

1. Go to browser settings > delete localhost cookies
![Image](https://github.com/user-attachments/assets/9480590f-7bee-41cd-b060-d43118539374)

1. Create app using aspire-starter template and run using `dotnet watch`
- Open CMD, create an aspire starter app using following code
```
dotnet new aspire-starter -o Aspire9StarterApp02
cd Aspire9StarterApp02\Aspire9StarterApp02.AppHost
dotnet watch
```

**ACTUAL**

The browser opens the dashboard login URL automatically, but without the token applied. So, you need to manually enter the token value to log in.

![Image](https://github.com/user-attachments/assets/7d516358-b7a8-4a96-a560-9821557114bc)

![Image](https://github.com/user-attachments/assets/3581cbbf-3ef0-4027-bd7b-97088f9395cd)

**EXPECTED**
The token should be passed to the login URL so that the login happens automatically and we can view the dashboard

![Image](https://github.com/user-attachments/assets/7cb63340-0f46-4e17-8ca0-9c0e1059f803)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.