fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

Clicking "discover endpoints" 4 times in rapid succession on the OIDC identity provider creates broken UX

Open mooreds opened this issue 10 months ago • 3 comments

Clicking "discover endpoints" 4 times in rapid succession on the OIDC identity provider creates broken UX

Description

You can break the admin UI UX by clicking rapidly on the "discover endpoints" label.

Observed versions

1.48.3, 1.49.2

Affects versions

Steps to reproduce

  1. Go to Settings -> Identity Providers and create a new "OpenID Connect" provider
  2. Scroll down and click on the "discover endpoints" label 4 times as fast as you can.
  3. You end up with the screen shown in the screenshot.

Expected behavior

You always see either the issuer field or the authorization/token/userinfo endpoint fields, never all or none.

Screenshots

Screenshot 2024-04-18 at 11 36 32 AM

Workaround

Don't click so fast, or refresh the page to correct the UI state.

Platform

Saw this on FF/mac and Chrome/mac against sandbox.fusionauth.io and locally

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Additional context

Workaround is to reload the page, which resets state. This works, but you lose everything you entered.

mooreds avatar Apr 18 '24 17:04 mooreds

Interesting. Generally speaking we debounce these clicks to avoid this scenario, so we are either not de-bouncing this request, or you broke our de-bouncer! 😎

robotdan avatar Jun 15 '24 00:06 robotdan

Can recreate. Looks like the issue is if you use the field label to toggle, we do not de-bounce that event.

robotdan avatar Jul 03 '24 19:07 robotdan

Internal:

  • https://github.com/FusionAuth/fusionauth-app/pull/474

robotdan avatar Jul 03 '24 21:07 robotdan