[openshift plugin] improve cluster login flow when Che is on non-secure connection #15093
Labels
kind/task
Internal things, technical debt, and to-do tasks to be performed.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your task related to a problem? Please describe.
OpenShift Connector Che Plugin provides the commands to log in to a cluster through the Theia commands palette. It works well when Che is on https connection only.

When on http, it reports
More details:
It's because plugin's
Log in
commands are relying on VS Code Clipboard API which is implemented with browser'snavigator.clipboard
API in Theia. For the security reasons,navigator.clipboard
API works on secure connections only.So, the user needs to log in from a terminal with the
oc login
command.Describe the solution you'd like
It would be great to allow the user to log in to a cluster with Theia UI w/o using a terminal.
For example, when I'm running Che on CodeReady Containers, it's running on http.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: