vscode-ansible: Signing in using Lightspeed fails when VS Code is running remotely

Summary

After installing the extension, when I click on the “Connect” button I am redirected to local URI (vscode://redhat.ansible or checode://redhat.ansible) but I would expect to be redirected to VS Code URL instead.

The problem can be reproduced using OpenShift Dev Spaces using Red Hat Developer Sandbox (https://workspaces.openshift.com) or GitHub Codespaces.

2023-07-03 15 54 36

Extension version

v2.4.78

VS Code version

insiders

Ansible Version

N/A

OS / Environment

N/A

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 8
  • Comments: 18

Most upvoted comments

Hi @svor @TamiTakamiya . Currently, the solution only works for Dev Spaces instances hosted at developers.redhat.com. On-premise Dev Spaces support is being worked on.

@TamiTakamiya thanks for updates

A new version (v2.10.130) of Ansible VS Code Extension was published to Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=redhat.ansible

This contains the changes required to have Lightspeed on Dev Spaces, but a change is also required on Dev Spaces to use it. On GitHub Codespaces, the OAuth2 Authorization flow works w/o additional changes.

@svor https://github.com/ansible/vscode-ansible/pull/1012 requires corresponding changes on the server side. Currently our staging server contains those changes, but the production server at https://c.ai.ansible.redhat.com/ has not been updated yet. We are planning to update it soon and will publish the updated extension once it’s done. Hopefully it will happen within a week. Thanks!