diff --git a/.env.example b/.env.example index eeef109d3..84914ee9f 100644 --- a/.env.example +++ b/.env.example @@ -32,8 +32,8 @@ VITE_OKTASSO_TOKEN_EXCHANGE_URL= VITE_OKTASSO_CLIENT_ID= VITE_OKTASSO_TOKEN_COOKIE_NAME= VITE_OKTASSO_SCOPES=profile email openid -VITE_OKTASSO_REDIRECT_URI=http://localhost:3001/auth -VITE_OKTASSO_CALLBACK_PORT=3001 +VITE_OKTASSO_REDIRECT_URI=http://localhost:31337/auth +VITE_OKTASSO_CALLBACK_PORT=31337 VITE_OKTASSO_REFRESH_AFTER_MS=3300000 # Github diff --git a/vscode-extension/src/auth/oktaSsoConfig.test.ts b/vscode-extension/src/auth/oktaSsoConfig.test.ts index eafac2a84..98624b460 100644 --- a/vscode-extension/src/auth/oktaSsoConfig.test.ts +++ b/vscode-extension/src/auth/oktaSsoConfig.test.ts @@ -54,8 +54,8 @@ test("falls back to the documented defaults for optional settings", () => { clearEnv(); const config = getOktaSsoConfig(); assert.equal(config.scopes, "profile email openid"); - assert.equal(config.redirectUri, "http://localhost:3001/auth"); - assert.equal(config.callbackPort, 3001); + assert.equal(config.redirectUri, "http://localhost:31337/auth"); + assert.equal(config.callbackPort, 31337); assert.equal(config.refreshAfterMs, 3_300_000); }); diff --git a/vscode-extension/src/auth/oktaSsoConfig.ts b/vscode-extension/src/auth/oktaSsoConfig.ts index 6753839e2..14afac7c1 100644 --- a/vscode-extension/src/auth/oktaSsoConfig.ts +++ b/vscode-extension/src/auth/oktaSsoConfig.ts @@ -1,6 +1,6 @@ const DEFAULT_SCOPES = "profile email openid"; -const DEFAULT_REDIRECT_URI = "http://localhost:3001/auth"; -const DEFAULT_CALLBACK_PORT = 3001; +const DEFAULT_REDIRECT_URI = "http://localhost:31337/auth"; +const DEFAULT_CALLBACK_PORT = 31337; const DEFAULT_REFRESH_AFTER_MS = 3_300_000; export interface OktaSsoConfig {