Socket
Socket
Sign inDemoInstall

@microsoft/vscode-azext-azureauth

Package Overview
Dependencies
17
Maintainers
12
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

4

out/src/VSCodeAzureSubscriptionProvider.d.ts

@@ -31,5 +31,7 @@ import * as vscode from 'vscode';

*
* @param tenantId (Optional) Provide to check if a user is signed in to a specific tenant.
*
* @returns True if the user is signed in, false otherwise.
*/
isSignedIn(): Promise<boolean>;
isSignedIn(tenantId?: string): Promise<boolean>;
/**

@@ -36,0 +38,0 @@ * Asks the user to sign in or pick an account to use.

@@ -98,2 +98,6 @@ "use strict";

}
// If the user is not signed in to this tenant, then skip it
if (!(yield this.isSignedIn(tenantId))) {
continue;
}
// For each tenant, get the list of subscriptions

@@ -118,7 +122,9 @@ for (const subscription of yield this.getSubscriptionsForTenant(tenantId)) {

*
* @param tenantId (Optional) Provide to check if a user is signed in to a specific tenant.
*
* @returns True if the user is signed in, false otherwise.
*/
isSignedIn() {
isSignedIn(tenantId) {
return __awaiter(this, void 0, void 0, function* () {
const session = yield vscode.authentication.getSession((0, configuredAzureEnv_1.getConfiguredAuthProviderId)(), this.getDefaultScopes(), { createIfNone: false, silent: true });
const session = yield vscode.authentication.getSession((0, configuredAzureEnv_1.getConfiguredAuthProviderId)(), this.getScopes([], tenantId), { createIfNone: false, silent: true });
return !!session;

@@ -125,0 +131,0 @@ });

{
"name": "@microsoft/vscode-azext-azureauth",
"author": "Microsoft Corporation",
"version": "1.1.2",
"version": "1.1.3",
"description": "Azure authentication helpers for Visual Studio Code",

@@ -6,0 +6,0 @@ "tags": [

@@ -5,3 +5,3 @@ # VSCode Azure SDK for Node.js - Azure Auth

This package provides a simple way to authenticate to Azure and receive Azure subscription information.
This package provides a simple way to authenticate to Azure and receive Azure subscription information. It uses the [built-in Microsoft Authentication extension](https://github.com/microsoft/vscode/tree/main/extensions/microsoft-authentication) and does not rely on the [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) in any way.

@@ -8,0 +8,0 @@ ## Azure Subscription Provider

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc