@azure/msal-node package
Classes
| AuthError |
General error class thrown by the MSAL.js library. |
| ClientAssertion |
Client assertion of type jwt-bearer used in confidential client flows |
| ClientAuthError |
Error thrown when there is an error in the client code running on the browser. |
| ClientConfigurationError |
Error thrown when there is an error in configuration of the MSAL.js library. |
| ConfidentialClientApplication |
This class is to be used to acquire tokens for confidential client applications (webApp, webAPI). Confidential client applications will configure application secrets, client certificates/assertions as applicable |
| DistributedCachePlugin |
Cache plugin that serializes data to the cache and deserializes data from the cache |
| InteractionRequiredAuthError |
Error thrown when user interaction is required. |
| Logger |
Class which facilitates logging of messages to a specific place. |
| ManagedIdentityApplication |
Class to initialize a managed identity and identify the service |
| PublicClientApplication |
This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user. |
| ServerError |
Error thrown when there is an error with the server code, for example, unavailability. |
| TokenCache |
In-memory token cache manager |
| TokenCacheContext |
This class instance helps track the memory changes facilitating decisions to read from and write to the persistent cache |
Interfaces
| IAppTokenProvider | |
| ICacheClient |
Interface for the cache that defines a getter and setter |
| ICachePlugin | |
| IConfidentialClientApplication |
Interface for the ConfidentialClientApplication class defining the public API signatures |
| ILoopbackClient |
Interface for LoopbackClient allowing to replace the default loopback server with a custom implementation. |
| INativeBrokerPlugin | |
| INetworkModule |
Client network interface to send backend requests. |
| IPartitionManager |
Interface that defines getter methods to get keys used to identity data in the cache |
| IPublicClientApplication |
Interface for the PublicClientApplication class defining the public API signatures |
| ISerializableTokenCache | |
| ITokenCache |
Token cache interface for the client, giving access to cache APIs |
Type Aliases
| AccountInfo |
Account object with the following signature:
|
| AppTokenProviderParameters |
Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used to help create an AppTokenProviderResult.
|
| AppTokenProviderResult |
Output object for IAppTokenProvider extensiblity.
|
| AuthenticationResult |
Result returned from the authority's token endpoint.
|
| AuthorizationCodePayload |
Response returned after processing the code response query string or fragment. |
| AuthorizationCodeRequest |
Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow) |
| AuthorizationUrlRequest |
Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow) |
| AuthorizeResponse |
Response properties that may be returned by the /authorize endpoint |
| AzureCloudOptions |
AzureCloudInstance specific options
|
| BrokerOptions |
Use this to configure the below broker options:
Note: These options are only available for PublicClientApplications using the Authorization Code Flow |
| CacheKVStore |
Key value store for in-memory cache |
| CacheOptions |
Use this to configure the below cache configuration options:
|
| ClientAssertionCallback | |
| ClientCredentialRequest |
ClientCredentialRequest |
| Configuration |
Use the configuration object to configure MSAL and initialize the client application object
|
| DeviceCodeRequest |
Parameters for Oauth2 device code flow. |
| IdTokenClaims |
Type which describes Id Token claims known by MSAL. |
| InMemoryCache |
Intermittent type to handle in-memory data objects with defined types |
| InteractiveRequest |
Request object passed by user to configure acquireTokenInteractive API |
| JsonCache |
Cache format read from the cache blob provided to the configuration during app instantiation |
| ManagedIdentityConfiguration | |
| ManagedIdentityIdParams | |
| ManagedIdentityRequestParams |
ManagedIdentityRequest |
| NetworkRequestOptions |
Options allowed by network request APIs. |
| NetworkResponse | |
| NodeAuthOptions |
|
| NodeSystemOptions |
Type for configuring logger and http client options
|
| NodeTelemetryOptions | |
| OnBehalfOfRequest |
OnBehalfOfRequest |
| RefreshTokenRequest |
CommonRefreshTokenRequest |
| SerializedAccessTokenEntity |
Access token credential type |
| SerializedAccountEntity |
Account type |
| SerializedAppMetadataEntity |
AppMetadata type |
| SerializedIdTokenEntity |
Idtoken credential type |
| SerializedRefreshTokenEntity |
Refresh token credential type |
| SignOutRequest | |
| SilentFlowRequest |
SilentFlow parameters passed by the user to retrieve credentials silently |
| UsernamePasswordRequest |
UsernamePassword parameters passed by the user to retrieve credentials Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing. |
Enums
| LogLevel |
Log message level. |
Variables
| Azure |
|
| Managed |
Managed Identity Source Names |
| Protocol |
Protocol modes supported by MSAL. |
| Prompt |
|
| Response |
|
| version |
Variable Details
AzureCloudInstance
AzureCloudInstance: { AzureChina: "https://login.chinacloudapi.cn", AzureGermany: "https://login.microsoftonline.de", AzurePpe: "https://login.windows-ppe.net", AzurePublic: "https://login.microsoftonline.com", AzureUsGovernment: "https://login.microsoftonline.us", None: "none" }
Type
{ AzureChina: "https://login.chinacloudapi.cn", AzureGermany: "https://login.microsoftonline.de", AzurePpe: "https://login.windows-ppe.net", AzurePublic: "https://login.microsoftonline.com", AzureUsGovernment: "https://login.microsoftonline.us", None: "none" }
ManagedIdentitySourceNames
Managed Identity Source Names
ManagedIdentitySourceNames: { APP_SERVICE: "AppService", AZURE_ARC: "AzureArc", CLOUD_SHELL: "CloudShell", DEFAULT_TO_IMDS: "DefaultToImds", IMDS: "Imds", MACHINE_LEARNING: "MachineLearning", SERVICE_FABRIC: "ServiceFabric" }
Type
{ APP_SERVICE: "AppService", AZURE_ARC: "AzureArc", CLOUD_SHELL: "CloudShell", DEFAULT_TO_IMDS: "DefaultToImds", IMDS: "Imds", MACHINE_LEARNING: "MachineLearning", SERVICE_FABRIC: "ServiceFabric" }
ProtocolMode
Protocol modes supported by MSAL.
ProtocolMode: { AAD: "AAD", EAR: "EAR", OIDC: "OIDC" }
Type
{ AAD: "AAD", EAR: "EAR", OIDC: "OIDC" }
PromptValue
PromptValue: { CONSENT: string, CREATE: string, LOGIN: string, NONE: string, NO_SESSION: string, SELECT_ACCOUNT: string }
Type
{ CONSENT: string, CREATE: string, LOGIN: string, NONE: string, NO_SESSION: string, SELECT_ACCOUNT: string }
ResponseMode
ResponseMode: { FORM_POST: "form_post", FRAGMENT: "fragment", QUERY: "query" }
Type
{ FORM_POST: "form_post", FRAGMENT: "fragment", QUERY: "query" }
version
version: "5.0.3"
Type
"5.0.3"