Handle authority & redirectUri in acquireTokenByRefreshToken (#263958)

Handle authority in acquireTokenByRefreshToken

This fixes the migration logic for clients that that moving from MSAL to MSAL+Broker
This commit is contained in:
Tyler James Leonhardt
2025-08-28 21:27:54 -07:00
committed by GitHub
parent 5b25d491ca
commit 2e43a0c0d6
4 changed files with 35 additions and 13 deletions

View File

@@ -4,6 +4,8 @@
*--------------------------------------------------------------------------------------------*/
import { Uri } from 'vscode';
export const DEFAULT_REDIRECT_URI = 'https://vscode.dev/redirect';
const VALID_DESKTOP_CALLBACK_SCHEMES = [
'vscode',
'vscode-insiders',

View File

@@ -19,6 +19,6 @@ export interface ICachedPublicClientApplication {
export interface ICachedPublicClientApplicationManager {
onDidAccountsChange: Event<{ added: AccountInfo[]; changed: AccountInfo[]; deleted: AccountInfo[] }>;
getOrCreate(clientId: string, refreshTokensToMigrate?: string[]): Promise<ICachedPublicClientApplication>;
getOrCreate(clientId: string, migrate?: { refreshTokensToMigrate?: string[]; tenant: string }): Promise<ICachedPublicClientApplication>;
getAll(): ICachedPublicClientApplication[];
}