Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to auth when using Gitpod Local Companion #6712

Closed
akoenig opened this issue Nov 15, 2021 · 4 comments
Closed

Unable to auth when using Gitpod Local Companion #6712

akoenig opened this issue Nov 15, 2021 · 4 comments
Labels
component: local app meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter team: IDE type: bug Something isn't working

Comments

@akoenig
Copy link

akoenig commented Nov 15, 2021

Bug description

Hello everybody 🙂,

first of all, sorry for crossposting, but I think it is more a bug than a general question (I asked in https://community.gitpod.io/t/gitpod-local-companion-oauth2-failure/5604).

During the process of migrating our projects to Gitpod we encountered a project where we need the tunneling capabilities of the Gitpod Local Companion. Unfortunately, right now, when trying to start the local companion, the OAuth2 flow fails with the following message:

{
  "status": 400,
  "message": "The requested scope is invalid, unknown, or malformed: Check the `resource:workspace::*::get, resource:workspaceInstance::*::get` scope(s)",
  "stack": "t: The requested scope is invalid, unknown, or malformed: Check the `resource:workspace::*::get, resource:workspaceInstance::*::get` scope(s)\n    at Function.t.invalidScope (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:10180)\n    at t.<anonymous> (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:16367)\n    at u (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:3282)\n    at Generator._invoke (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:3035)\n    at Generator.next (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:3641)\n    at s (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:302)\n    at a (/app/node_modules/@jmondi/oauth2-server/dist/oauth2-server.cjs.production.min.js:1:505)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)"
}

Steps to reproduce

./gitpod-local-companion-linux --mock-keyring

Workspace affected

No response

Expected behavior

The OAuth2 flow should be successful.

Example repository

No response

Anything else?

No response

@akosyakov
Copy link
Member

Could you run ./gitpod-local-companion-linux --version? Maybe it is outdated.

@akosyakov akosyakov added component: local app meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter team: IDE type: bug Something isn't working labels Nov 16, 2021
@akoenig
Copy link
Author

akoenig commented Nov 16, 2021

@akosyakov Thanks for your response. We tested with a fresh install:

gitpod-local-companion version main.1254

@akosyakov
Copy link
Member

It looks outdated, my returns main.1817.

Could you delete and download a new one: https://www.gitpod.io/blog/local-app#installation

Could it be also that you changed Gitpod account? There is a following bug: #6452

@akoenig
Copy link
Author

akoenig commented Nov 16, 2021

Ahh, that was my fault. Thanks for the heads up, @akosyakov. I followed the link from the initial blog post and downloaded it from there.

@akoenig akoenig closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: local app meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter team: IDE type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants