diff --git a/samples/javascript_nodejs/84.bot-authentication-certificate/.env b/samples/javascript_nodejs/84.bot-authentication-certificate/.env index f2201387d7..edda736316 100644 --- a/samples/javascript_nodejs/84.bot-authentication-certificate/.env +++ b/samples/javascript_nodejs/84.bot-authentication-certificate/.env @@ -1,4 +1,5 @@ MicrosoftAppTenantId= +MicrosoftAppType= MicrosoftAppId= CertificateThumbprint= KeyVaultName= diff --git a/samples/javascript_nodejs/84.bot-authentication-certificate/README.md b/samples/javascript_nodejs/84.bot-authentication-certificate/README.md index 917d3b7d7e..ac1d54b6eb 100644 --- a/samples/javascript_nodejs/84.bot-authentication-certificate/README.md +++ b/samples/javascript_nodejs/84.bot-authentication-certificate/README.md @@ -58,6 +58,7 @@ node --version - MicrosoftAppId: App Id of your bot (gathered from the [Setup a Bot][#TrySample] step). - CertificateThumbprint: Thumbprint of the certificate uploaded to the app registration. - MicrosoftAppTenantId: Tenant Id to which your bot belongs (optional for MultiTenant apps). + - MicrosoftAppType: Type of the App (optional for MultiTenant apps). 2. Intall and configure [OpenSSL](https://www.openssl.org/source/) with the latest version - Download the latest version source and add the folder to the [environment variables](https://www.java.com/en/download/help/path.html) path. @@ -127,6 +128,7 @@ node --version - MicrosoftAppId: App Id of your bot (gathered from the [Setup a Bot][#TrySample] step). - CertificateThumbprint: Thumbprint of the certificate uploaded to the app registration. - MicrosoftAppTenantId: Tenant Id to which your bot belongs (optional for MultiTenant apps). + - MicrosoftAppType: Type of the App (optional for MultiTenant apps). 2. Create a [KeyVault](https://learn.microsoft.com/en-us/azure/key-vault/general/quick-create-portal) resource. diff --git a/samples/javascript_nodejs/84.bot-authentication-certificate/index.js b/samples/javascript_nodejs/84.bot-authentication-certificate/index.js index f967f16c82..3d488f9515 100644 --- a/samples/javascript_nodejs/84.bot-authentication-certificate/index.js +++ b/samples/javascript_nodejs/84.bot-authentication-certificate/index.js @@ -57,7 +57,8 @@ const { AuthBot } = require('./authBot'); MicrosoftAppId: process.env.MicrosoftAppId, CertificateThumbprint: process.env.CertificateThumbprint, CertificatePrivateKey: certificateKey, - MicrosoftAppTenantId: process.env.MicrosoftAppTenantId + MicrosoftAppTenantId: process.env.MicrosoftAppTenantId, + MicrosoftAppType: process.env.MicrosoftAppType }); // ---- Authenticate using local certificate