Skip to content

Commit

Permalink
add az login step
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Jun 4, 2024
1 parent 4bc9c17 commit b984c23
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Bot Framework v4 bot authentication using Certificate

This bot has been created using [Bot Framework](https://dev.botframework.com/), is shows how to use the bot authentication capabilities of Azure Bot Service. In this sample, we use a local or KeyVault certificate to create the Bot Framework Authentication.
This bot has been created using [Bot Framework](https://dev.botframework.com/), it shows how to use the bot authentication capabilities of Azure Bot Service. In this sample, we use a local or KeyVault certificate to create the Bot Framework Authentication.

## Interacting with the bot

Expand Down Expand Up @@ -118,6 +118,11 @@ An SSL/TLS certificate is a digital object that allows systems to verify identit
![Certificate Reading](Images/Local/CertificateReading.png)
10. In the current sample context, log into Azure to obtain the default credentials by executing the following command.
```
az login
```
### Using KeyVault
- This option requires the following app settings variables:
Expand Down Expand Up @@ -164,6 +169,11 @@ An SSL/TLS certificate is a digital object that allows systems to verify identit
![Certificate Reading](Images/KeyVault/CertificateReading.png)
7. In the current sample context, log into Azure to obtain the default credentials by executing the following command.
```
az login
```
- Run the bot from a terminal or from Visual Studio:
A) From a terminal, navigate to `samples/csharp_dotnetcore/84.bot-authentication-certificate`
Expand Down
12 changes: 11 additions & 1 deletion samples/csharp_dotnetcore/85.bot-authentication-sni/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Bot Framework v4 bot authentication using Subject Name/Issuer

This bot has been created using Bot Framework, is shows how to use the bot authentication capabilities of Azure Bot Service. In this sample, we use a local or KeyVault certificate and the MSAL Subject Name/Issuer configuration to create the Bot Framework Authentication.
This bot has been created using Bot Framework, it shows how to use the bot authentication capabilities of Azure Bot Service. In this sample, we use a local or KeyVault certificate and the MSAL Subject Name/Issuer configuration to create the Bot Framework Authentication.
>NOTE: Microsoft's first-party resources are required to test this sample.
## Interacting with the bot
Expand Down Expand Up @@ -104,6 +104,11 @@ Certificate Subject Name and Issuer (SNI) based authentication is currently avai
![Certificate Reading](Images/Local/CertificateReading.png)
6. In the current sample context, log into Azure to obtain the default credentials by executing the following command.
```
az login
```
### Using KeyVault
- This option requires the following app settings variables:
Expand Down Expand Up @@ -146,6 +151,11 @@ Certificate Subject Name and Issuer (SNI) based authentication is currently avai
![Certificate Reading](Images/KeyVault/CertificateReading.png)
5. In the current sample context, log into Azure to obtain the default credentials by executing the following command.
```
az login
```
- Run the bot from a terminal or from Visual Studio:
A) From a terminal, navigate to `samples/csharp_dotnetcore/85.bot-authentication-sn`
Expand Down

0 comments on commit b984c23

Please sign in to comment.