che icon indicating copy to clipboard operation
che copied to clipboard

Revoke git service action is available after apply

Open vinokurig opened this issue 1 year ago • 0 comments

Describe the bug

It is possible to execute the revoke git service action after its actual execution.

Che version

7.80@latest

Steps to reproduce

  1. Setup GitHub oauth: https://eclipse.dev/che/docs/stable/administration-guide/configuring-oauth-2-for-github
  2. Start a workspace from a GitHub repository, accept the GitHub token agreement.
  3. Go to the dashboard Git Services tab and revoke the GitHub authorisation.
  4. Quickly go to the Personal Access Tokens tab and then quickly switch back to the Git Services tab.
  5. See: the GitHub still has an authorised state as the provision request was ignored and the related oauth token was not deleted.
  6. Revoke the GitHub authorisation.
  7. See: a notification about successful revoke appears and the authorisation status is changed to unauthorised.

Expected behavior

The git service must be in the unauthorised state and the revoke action must be always inactive after revoking.

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/latest

Environment

macOS

Eclipse Che Logs

No response

Additional context

No response

vinokurig avatar Jan 25 '24 09:01 vinokurig