code-server
code-server copied to clipboard
[Feat]: Get the external auth callback/redirect to the specific extension in embedded code server?
Generally in local VSCode, I know an extension whose login process is like:
- starting with a click on the login button
- vscode asks to open the external website with url, e.g., https://auth.xxx.xxx/xxx/auth?{params}&redirect_uri=vscode://{extension_name}&state=xxx
- the extension starts to wait for login state/token, etc.
- some authentication process in the browser
- redirection back to vscode with the special uri, e.g., vscode://{extension_name}&state=xxx
- login success.
However, in the case of embedded code server, I got stuck in step 5.
The only clue I found is as Failed to launch 'code-oss://{extension_name}?{params}' because the scheme does not have a registered handler
in browser DevTool. I consider code-oss
as the schema on the Linux server instead of Windows, right?
Anyway I can do to solve this login issue?
The code server url is like http://xxx:8889/?folder=/data/workspace
. Does simple URL schema change work?
Otherwise, do I need to develop REST APIs? or just use some forward/proxy methods?
Code-server Version: 4.19.1
Thanks!