Skip to content

Fix sign-in flow to properly cancel pending requests on user cancellation#960

Merged
albertospelta merged 1 commit into
mainfrom
alberto/fix-signin-cancellation
Jul 10, 2026
Merged

Fix sign-in flow to properly cancel pending requests on user cancellation#960
albertospelta merged 1 commit into
mainfrom
alberto/fix-signin-cancellation

Conversation

@albertospelta

@albertospelta albertospelta commented Jul 10, 2026

Copy link
Copy Markdown
Member

Abort the pending sign-in request when the user cancels the dialog, instead of leaving it pending until the hard timeout expires, and scope the timeout ceiling to the system browser flow only, since the embedded browser already cancels correctly on its own.

Normalize all sign-in cancellation paths (embedded/system browser MSAL cancellation, timeout, explicit user abort) to a single OperationCanceledException, handled by responding 204 No Content instead of an error, and remove the now-unused SignInMsalTimeoutExpired problem code and its telemetry noise across all locales.

…tion

Abort the pending sign-in request when the user cancels the dialog, instead of leaving it
pending until the hard timeout expires, and scope the timeout ceiling to the system browser flow only, since the embedded browser already cancels correctly on its own.

Normalize all sign-in cancellation paths (embedded/system browser MSAL cancellation, timeout, explicit user abort) to a single OperationCanceledException, handled by responding 204 No Content instead of an error, and remove the now-unused SignInMsalTimeoutExpired problem code and its telemetry noise across all locales.
@albertospelta albertospelta changed the title Fix sign-in flow to properly cancel pending requests on user cancella… Fix sign-in flow to properly cancel pending requests on user cancellation Jul 10, 2026
@albertospelta albertospelta marked this pull request as ready for review July 10, 2026 12:24
@albertospelta albertospelta merged commit 4f13d12 into main Jul 10, 2026
1 check passed
@albertospelta albertospelta deleted the alberto/fix-signin-cancellation branch July 10, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant