Skip to content

Commit

Permalink
include MicrosoftAppTenantId
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Jun 18, 2024
1 parent b924e75 commit c3429b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
MicrosoftAppTenantId=
MicrosoftAppId=
CertificateThumbprint=
KeyVaultName=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ node --version
1. Configure the following app settings variables:
- 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).
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.
Expand Down Expand Up @@ -125,6 +126,7 @@ node --version
- CertificateName: Name of the certificate in the KeyVault.
- 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).
2. Create a [KeyVault](https://learn.microsoft.com/en-us/azure/key-vault/general/quick-create-portal) resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ const { AuthBot } = require('./authBot');
const botFrameworkAuthentication = new ConfigurationBotFrameworkAuthentication({
MicrosoftAppId: process.env.MicrosoftAppId,
CertificateThumbprint: process.env.CertificateThumbprint,
CertificatePrivateKey: certificateKey
CertificatePrivateKey: certificateKey,
MicrosoftAppTenantId: process.env.MicrosoftAppTenantId
});

// ---- Authenticate using local certificate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ node --version
1. Configure the following app settings variables:
- 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).
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.
Expand Down Expand Up @@ -113,7 +114,7 @@ node --version
- KeyVaultName: Name of the KeyVault containing the certificate.
- CertificateName: Name of the certificate in the KeyVault.
- MicrosoftAppId: App Id of your bot (gathered from the [Setup a Bot][#TrySample] step).
- MicrosoftAppTenantId: Tenant Id to which your bot belongs(optional).
- MicrosoftAppTenantId: Tenant Id to which your bot belongs (optional for MultiTenant apps).
2. Import the certificate under the Certificates section, hit on Generate/Import, complete the form, and upload the certificate.
Expand Down

0 comments on commit c3429b4

Please sign in to comment.