Repository navigation
Keep Cancel and offer Try again when a consent page fails - #4951
Merged
Merged
Conversation
The Continue with Tale page enabled both buttons only once it had read the requesting application's name. When that lookup failed (or while it was pending), Allow and Cancel were both dead: the person could not send the waiting application a refusal, the application waited for its own timeout, and only the continuation page had a Try again. Cancel now depends only on whether an answer is in flight, since a denial needs no application name; Allow still waits for the name, so nobody agrees to something they cannot see. When the application cannot be read the page offers Try again in place of the dead Allow. Try again runs the whole load again (sign-in, two-factor status, application), on both pages, so it also recovers a session read that failed. Observed against a real provider and a registered application: with the lookup blocked the page shows the notice, Try again and Cancel, and Cancel reaches the application as access_denied; with the lookup unblocked Try again shows the application and Allow returns a code; with a slow lookup Cancel is enabled and Allow is not. The new tests fail on the old component (7 of 8) and pass on this one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4901.
What
The Continue with Tale page (the sign-in screen another application sends people to) enabled Allow and Cancel only once it had read the requesting application's name. When that lookup failed, both buttons stayed dead: the person could not send the waiting application a refusal, the application waited for its own timeout, and the alert said to start again with nothing to press. Only the continuation page had a Try again.
No strings change: the page reuses
oauth.retry,oauth.cancelandoauth.failed.Proof
oauth-authorization.test.tsx: eight new tests, written first. With the old component 7 of them fail; the eighth pins what must not change (a failed answer on a page that knows the application keeps Allow and Cancel, and shows no Try again). An axe audit covers the failed state.error=access_deniedwith itsstate; with the lookup unblocked Try again shows "Office application wants to sign you in with Tale." and Allow and continue returns a code; with a slow lookup Cancel is enabled and Allow is not.lint:links,lint:manual,lint:conflicts, knip, oxlint (type-aware) and both typechecks clean; shared 974, platform server + pii 89 114, docs 716, platform UI 8 117 pass;auth-page-layout.browser.test.tsx, which renders this page, passes (5). The first full UI run timed out once inversion-compare-page.test.tsx(5 s, load average 10–12 on this machine; the file passes three times alone in under a second of test time, and the whole suite passed on the re-run).oxfmt --checkreports onlyskill-detail-pane.tsxfrom fix(skills): protect stale edits with entity tags #4192, which this change does not touch and fix(platform): repair main's Format, Browser and E2E checks #4949 repairs.AUTH-B21(blocked lookup → Try again and Cancel; slow lookup), its pin, and the automation row for the component half.Not here