Rename vscode-account extension to microsoft-authentication

This commit is contained in:
Rachel Macfarlane 2020-05-13 09:41:29 -07:00
parent 969159eaa2
commit 9559d186d4
15 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{
"name": "vscode-account",
"name": "microsoft-authentication",
"publisher": "vscode",
"displayName": "%displayName%",
"description": "%description%",
@ -18,8 +18,8 @@
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "gulp compile-extension:vscode-account",
"watch": "gulp watch-extension:vscode-account"
"compile": "gulp compile-extension:microsoft-authentication",
"watch": "gulp watch-extension:microsoft-authentication"
},
"devDependencies": {
"typescript": "^3.7.4",

View file

@ -334,7 +334,7 @@ export class AzureActiveDirectoryService {
}
private async loginWithoutLocalServer(scope: string): Promise<IToken> {
const callbackUri = await vscode.env.asExternalUri(vscode.Uri.parse(`${vscode.env.uriScheme}://vscode.vscode-account`));
const callbackUri = await vscode.env.asExternalUri(vscode.Uri.parse(`${vscode.env.uriScheme}://vscode.microsoft-authentication`));
const nonce = crypto.randomBytes(16).toString('base64');
const port = (callbackUri.authority.match(/:([0-9]*)$/) || [])[1] || (callbackUri.scheme === 'https' ? 443 : 80);
const callbackEnvironment = this.getCallbackEnvironment(callbackUri);