bcgov / bcgov/entity

Edit UI: when IDIR login has expired, Retry doesn't work

Open
#7,139 0 comments 0 reactions 0 assignees View on GitHub
bug ENTITY - DO NOT USE Priority3
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

**Describe the bug in current situation**
While logged in as IDIR, I left an alteration tab open overnight. Not surprisingly, in the morning when I refreshed the page, I got the "Account Authorization" error dialog.

However, clicking the "Retry" button did nothing. I expected it to redirect me to the sign in pages and that I could then resume my alteration.

(If you can't reproduce this, open a new tab on BCROS home page, then logout and/or re-login IDIR.)

Note that my dev console displays this message each time I click Retry. (Something is not being handled correctly in code.)
`Keycloak error = Error: Error getting Keycloak token`

![image.png](https://images.zenhubusercontent.com/5d0a7edda4644173e93bf808/ab2dc4df-3133-4b3e-ac14-78488730b7b5)

This is probably not P1 as users will figure out to click Exit or re-open the browser window (and this is occurring in an awkward scenario anyway.)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the Edit UI's "Account Authorization" dialog and its Retry button, then reproduce an expired IDIR session and inspect the console's "Error getting Keycloak token" message. Trace the retry handling and verify that it redirects to sign-in and allows the alteration to resume.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.