Socket
Socket
Sign inDemoInstall

@azure/identity

Package Overview
Dependencies
Maintainers
1
Versions
509
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/identity

Provides credential implementations for Azure SDK libraries that can authenticate with Azure Active Directory


Version published
Weekly downloads
1M
decreased by-60.72%
Maintainers
1
Weekly downloads
 
Created

What is @azure/identity?

The @azure/identity package provides Azure Active Directory token authentication support across the Azure SDK. It enables developers to authenticate with Azure services using various credentials and manage tokens.

What are @azure/identity's main functionalities?

DefaultAzureCredential

DefaultAzureCredential is a comprehensive credential chain that tries multiple methods of authentication, suitable for most Azure SDK clients.

const { DefaultAzureCredential } = require('@azure/identity');
const credential = new DefaultAzureCredential();

ClientSecretCredential

ClientSecretCredential authenticates with Azure AD using a client ID and secret. It's typically used for server-to-server authentication.

const { ClientSecretCredential } = require('@azure/identity');
const credential = new ClientSecretCredential(tenantId, clientId, clientSecret);

ManagedIdentityCredential

ManagedIdentityCredential allows an Azure service to authenticate to other Azure services using the managed identity of an Azure resource.

const { ManagedIdentityCredential } = require('@azure/identity');
const credential = new ManagedIdentityCredential();

EnvironmentCredential

EnvironmentCredential reads authentication details from environment variables and can be used for automated deployments or local development.

const { EnvironmentCredential } = require('@azure/identity');
const credential = new EnvironmentCredential();

InteractiveBrowserCredential

InteractiveBrowserCredential is used for applications that require interactive authentication by opening a default system browser.

const { InteractiveBrowserCredential } = require('@azure/identity');
const credential = new InteractiveBrowserCredential({ clientId: 'your-client-id' });

Other packages similar to @azure/identity

Keywords

FAQs

Package last updated on 03 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc