Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/identity

Package Overview
Dependencies
Maintainers
2
Versions
543
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 Microsoft Entra ID

  • 4.5.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2.8M
decreased by-2.34%
Maintainers
2
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 17 Oct 2024

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc