mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 05:07:35 +00:00
The flows are crucial to the extension and I wanted to be able to declare which can be used when in a declarative way. This reworks the flows into that model. Additionally, it pulls in the Client ID and secret from a config which will allow us to not rely on the vscode.dev proxy on Desktop (because we can make a distro change that includes the secret... which isn't a real secret, says GitHub)... unfortunately we still need to rely on it for Web due to CORS but we're in a position where it will be easy to rip the proxy out when GH supports it.
16 lines
605 B
TypeScript
16 lines
605 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
export interface IConfig {
|
|
// The client ID of the GitHub OAuth app
|
|
gitHubClientId: string;
|
|
gitHubClientSecret?: string;
|
|
}
|
|
|
|
// For easy access to mixin client ID and secret
|
|
export const Config: IConfig = {
|
|
gitHubClientId: '01ab8ac9400c4e429b23'
|
|
};
|