cal-itp / benefits

Transit benefits enrollment, minus the paperwork.
https://docs.calitp.org/benefits
GNU Affero General Public License v3.0
25 stars 9 forks source link

Implement error handling during authentication with the IDG for good UX #2019

Closed thekaveman closed 6 days ago

thekaveman commented 3 months ago

Overview

This is a follow-up to the minor incident documented in #2009.

We want to ensure that if errors are generated during the Auth interaction with IdG they are handled appropriately by the Benefits app, and users are given a meaningful error message.

This is related to the new error page design and scoping happening for #1939

Eligibility verification error

This error state addresses errors result after a rider has authenticated with Login.gov and the Benefits requests the CDT Identity Gateway verify eligibility for the selected transit Benefit. The fix is outside the user's control; resolution will require support from the CDT team and may take hours to resolve.

The genesis for this error message is the incident documented in this report.

“The technical manifestation of this issue was that when the Benefits application sent its request to the IdG, and the user completed their sign in with Login.gov, the IdG attempted to sign the token response back to Benefits with an expired certificate. This led to a failure in the IdG, with the resulting 500 response back to the Benefits app, causing a failure to parse the token response, which ultimately generated the Sentry notification.”

Acceptance criteria:

Design criteria

Engineering criteria

srhhnry commented 2 months ago

Screen for error that occurs on the Login side of the handoff

image

Screen for error that occurs on the IDG side of the handoff

image

All of the copy in these screens passes accessibility. Note the use of the sad bus icon as a decorative image. CTAs are to Return home (sentence case). More detail available on Figma.

I created two screens to cover more use cases, and am happy to talk through more about how they might work beyond the scope of this ticket.

srhhnry commented 1 month ago

Checking in on this ^

indexing commented 1 month ago

Design review scheduled for 6/12 to complete handoff.