mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
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:
committed by
GitHub
parent
5b25d491ca
commit
2e43a0c0d6
@@ -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',
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user