Replies: 2 comments
-
Huh...with GitHub authentication it redirects to an external oauth
server/relay with a callback URI (which includes the ID), the relay
redirects to GitHub, GitHub redirects back to the relay, then the relay
redirects to the callback it was provided in the first redirect after
adding the code and state to it.
It's definitely possible Microsoft authentication also uses the relay
but something doesn't go quite right there for some reason, like not
giving the ID in the first place for some reason or somehow redirecting
directly back to code-server without hitting the relay on the way back?
What does the redirect chain look like when you authenticate with
Microsoft?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
What if you use the code entry approach instead? https://docs.microsoft.com/en-us/visualstudio/liveshare/use/vscode#sign-in-using-a-user-code Code can also be obtained from https://insiders.liveshare.vsengsaas.visualstudio.com/auth/login |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
So, I tried to use
MS-vsliveshare.vsliveshare-pack
withcode-server
and I will describe a bit my journey here, in a summarized way:I've made a
Dockerfile
with the steps below.First, I uncompressed the
MS-vsliveshare.vsliveshare-1.0.3375.vsix
to the/config/extensions
folder, as it should.Second, I started
code-server
version3.8.0
with the following command:The extension was successfully loaded, and I could get to the page where I could share something:
When I click on "Share now", it goes to this screen to start the auth process:
Then I click "Sign in with Microsoft" and go through the authentication process, as it should normally happen. Once the sign-in process is successful, the browser is redirected to the following URL:
and the following screen appears:
So... I investigated a bit the
code-server
code, and I found out the following:https://github.com/cdr/code-server/blob/c4610f7829701aadb045d450013b84491c30580d/src/node/routes/vscode.ts#L125-L165
Where, in these lines, they say the
/callback
is implemented according to thevscode
implementation:https://github.com/cdr/code-server/blob/c4610f7829701aadb045d450013b84491c30580d/lib/vscode/resources/web/code-web.js#L419-L451
However, I've got to the conclusion that:
MS-vsliveshare.vsliveshare-1.0.3375.vsix
is not compatible to thevscode
packed by thecode-server
version3.8.0
;MS-vsliveshare.vsliveshare-1.0.3375.vsix
requires some other functions which are not open-source;code-server
set-up has some kind of misconfiguration that would accept external OAuth callbacks;code-server
and, upon success, thecode-server
callback API should be called with some sort of token/id;Can someone enlighten me here? I would like to discuss what's missing. Maybe I could even contribute to make this work.
Beta Was this translation helpful? Give feedback.
All reactions