-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueIndicates that the team needs a repro project to continue the investigation on this issuearea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearer
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When trying to run our Blazor WASM site in debug mode from VS2026, it gets stuck in a login loop. We are using MSAL auth with MS Entra ID.
During the login process, the web app will repeatedly hit and break on the "debugger" line below:
export function mono_wasm_runtime_ready (): void {
INTERNAL.mono_wasm_runtime_is_ready = runtimeHelpers.mono_wasm_runtime_is_ready = true;
// FIXME: where should this go?
_next_call_function_res_id = 0;
_call_function_res_cache = {};
_debugger_buffer_len = -1;
// DO NOT REMOVE - magic debugger init function
if ((<any>globalThis).dotnetDebugger)
// eslint-disable-next-line no-debugger
debugger;
}
After it hits that line and I click resume several times, it will login and go to https://localhost:5551/authentication/login-callback, then it will stop at the line with "debugger" in this script:
( () => {
let r = ["instantiate", "instantiateStreaming", "compile", "compileStreaming"];
for (let e of r) {
let t = WebAssembly[e];
WebAssembly[e] = function(...n) {
return t.apply(this, n).then(i => {
if (!(n[0]instanceof WebAssembly.Module))
debugger ;return i
}
)
}
}
}
)();
Then it will try to login again and loop forever.
I was able to resolve this issue disabling the new mono debugger (both checkboxes).
Expected Behavior
Application logs in as normal.
.NET Version
9.0 with VS2026 11109.219
Metadata
Metadata
Assignees
Labels
Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueIndicates that the team needs a repro project to continue the investigation on this issuearea-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearer