Result of a previous authentication that can be used to retrieve the cached credentials of each individual account. This is necessary to provide in case the application wants to work with more than one account per Client ID and Tenant ID pair.
This record can be retrieved by calling to the credential's authenticate()
method, as follows:
const authenticationRecord = await credential.authenticate();
The authority host to use for authentication requests. The default is "https://login.microsoftonline.com".
The client (application) ID of an App Registration in the tenant.
Makes getToken throw if a manual authentication is necessary.
Developers will need to call to authenticate()
to control when to manually authenticate.
The Azure Active Directory tenant (directory) ID.
To provide a persistence layer to store the credentials, we allow users to optionally specify TokenCachePersistenceOptions for their credential.
This feature is not currently available on Node 8 or earlier versions of Node JS.
This persistence layer uses DPAPI on Windows.
On OSX (Darwin) it tries to use the system's Keychain, otherwise if the property allowUnencryptedStorage
is set to true, it uses an unencrypted file.
On Linux it tries to use the system's Keyring, otherwise if the property allowUnencryptedStorage
is set to true, it uses an unencrypted file.
A callback function that will be invoked to show DeviceCodeInfo to the user. If left unassigned, we will automatically log the device code information and the authentication instructions in the console.
Generated using TypeDoc
Defines options for the InteractiveBrowserCredential class for NodeJS.