Merge pull request #3157 from continuedev/nate/quick-edit-4988

Code - OSS Redirect for auth
This commit is contained in:
Nate Sesti 2024-12-02 14:12:17 -08:00 • committed by GitHub
commit fabf54bfe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,11 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
}
get redirectUri() {
if (env.uriScheme === "vscode-insiders" || env.uriScheme === "vscode") {
if (
env.uriScheme === "vscode-insiders" ||
env.uriScheme === "vscode" ||
env.uriScheme === "code-oss"
) {
// We redirect to a page that says "you can close this page", and that page finishes the redirect
const url = new URL(controlPlaneEnv.APP_URL);
url.pathname = `/auth/${env.uriScheme}-redirect`;