-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[code] notify a user about missing scopes on git actions #2810
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
Comments
A notification API would be great. How would that API look like?
|
something like that but it should be stream right? |
blocked on #3267 |
Note: there's no need to make this work in Theia. It's fine if this works in code only. |
Path to scope elevation
APIFor step [scope-guess] we introduce REST "API" on server.
|
We decided to start with the new websocket connection from gp to the server instead of adding the REST API described above. |
Unfortunately, GitHub and Git are not playing together as assumed: The credential helper is only called with
If we do it as Theia does, the token provider would asynchronously verify the token scopes and fire a notification if they need upgrading. I assume we refrained from that as we'd flood the server with such requests on every request for Git tokens. In the case of Theia that didn't matter so much as the scope validation happened in the client. @AlexTugarev proposed to fork the credential helper on |
We decided to do do similar as in Theia:
Functionality-wise it's the same as we do in Theia. Backside is that this might put a bit more load on the server. We can still add some git error detection (like the |
Uh oh!
There was an error while loading. Please reload this page.
In Theia user gets prompted if there are NOT enough rights to perform git action like push. We should move this logic to the supervisor and expose the notification API from IDE to the supervisor.
The text was updated successfully, but these errors were encountered: