Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-5334

Enable VSCode Extension OAuth2 authorization code flow in Dev Spaces

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      = OAuth2 authorization code flow support for Microsoft Visual Studio Code - Open Source extensions

      With this release, OAuth2 authorization code flow using callbacks and URI handlers is supported. You can now use Microsoft Visual Studio Code - Open Source extensions that use this flow, for example the Ansible extension with the AI-powered Lightspeed service.

      [IMPORTANT]
      ====
      Because of an link:https://github.com/ansible/vscode-ansible/issues/938[ongoing issue with the Ansible extension], you can not use it with remote development environments.
      ====
      Show
      = OAuth2 authorization code flow support for Microsoft Visual Studio Code - Open Source extensions With this release, OAuth2 authorization code flow using callbacks and URI handlers is supported. You can now use Microsoft Visual Studio Code - Open Source extensions that use this flow, for example the Ansible extension with the AI-powered Lightspeed service. [IMPORTANT] ==== Because of an link: https://github.com/ansible/vscode-ansible/issues/938 [ongoing issue with the Ansible extension], you can not use it with remote development environments. ====
    • Enhancement
    • Done

      We (Ansible Lightspeed development) want to run OAuth2 authorization code flow with our Ansible VSCode extension in Dev Spaces using the technique described for GitHub Codespaces. The code worked on GitHub Codespaces as expected, but it did not work on Dev Spaces. Web browser tried to open a redirect URI like

      https://devspaces.apps.sandbox-m2.ll9k.p1.openshiftapps.com/oss-dev/callback?vscode-reqid=3&code=xxxxxxxxxxxxxxxxxxxxxxxxxxxx 

      and failed with a 404 page not found error.  The redirect URI was obtained through VSCode API vscode.env.asExternalUri().

       

        1. devspaces-404.mp4
          3.02 MB
          Masaaki Takamiya
        2. DevSpaces-Lightspeed-OAuth2.mp4
          4.47 MB
          Masaaki Takamiya
        3. ds_3.11.0.rc-01-25_embedded_ansible_plugin.png
          287 kB
          Dmytro Nochevnov
        4. screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.01.26-12_12_57.webm
          13.08 MB
          Valerii Svydenko
        5. screenshot-1.png
          33 kB
          Masaaki Takamiya

            amisevsk Angel Misevski
            rh-ee-ttakamiy Masaaki Takamiya
            Valerii Svydenko Valerii Svydenko
            Jana Vrbkova Jana Vrbkova
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: