mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
* `issuer` -> `authorizationServer` refactor Also: * adds `authorizationServerGlobs` to the authentication contribution schema * removes ugly MCP issuer hack and instead plumbs the authorizationServer down to the new auth providers
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
declare module 'vscode' {
|
|
export interface AuthenticationProviderOptions {
|
|
/**
|
|
* When specified, this provider will be associated with these authorization servers. They can still contain globs
|
|
* just like their extension contribution counterparts.
|
|
*/
|
|
readonly supportedAuthorizationServers?: Uri[];
|
|
}
|
|
|
|
export interface AuthenticationProviderSessionOptions {
|
|
/**
|
|
* When specified, the authentication provider will use the provided authorization server URL to
|
|
* authenticate the user. This is only used when a provider has `supportsAuthorizationServers` set
|
|
*/
|
|
authorizationServer?: Uri;
|
|
}
|
|
|
|
export interface AuthenticationGetSessionOptions {
|
|
/**
|
|
* When specified, the authentication provider will use the provided authorization server URL to
|
|
* authenticate the user. This is only used when a provider has `supportsAuthorizationServers` set
|
|
*/
|
|
authorizationServer?: Uri;
|
|
}
|
|
}
|