Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/github-authentication/src/config.ts
3316 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
export interface IConfig {
7
// The client ID of the GitHub OAuth app
8
gitHubClientId: string;
9
gitHubClientSecret?: string;
10
}
11
12
// For easy access to mixin client ID and secret
13
//
14
// NOTE: GitHub client secrets cannot be secured when running in a native client so in other words, the client secret is
15
// not really a secret... so we allow the client secret in code. It is brought in before we publish VS Code. Reference:
16
// https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/best-practices-for-creating-an-oauth-app#client-secrets
17
export const Config: IConfig = {
18
gitHubClientId: '01ab8ac9400c4e429b23'
19
};
20
21