diff --git a/samples/react-bot-framework-secure/README.md b/samples/react-bot-framework-secure/README.md index 4839f4eee..56c3e4352 100644 --- a/samples/react-bot-framework-secure/README.md +++ b/samples/react-bot-framework-secure/README.md @@ -41,8 +41,8 @@ This demo does not include any threat models and is designed for educational pur Solution|Author(s) --------|--------- -webpart | STCA BF Channel and ABS (stcabfchannel@microsoft.com)
Stephan Bisser (@stephanbisser, bisser.io) -bot | STCA BF Channel and ABS (stcabfchannel@microsoft.com) +webpart | Bot Framework Discussions (msbots@service.microsoft.com)
Stephan Bisser (@stephanbisser, bisser.io) +bot | Bot Framework Discussions (msbots@service.microsoft.com) ## Version history diff --git a/samples/react-bot-framework-sso/README.md b/samples/react-bot-framework-sso/README.md index 71f51827c..4c251936e 100644 --- a/samples/react-bot-framework-sso/README.md +++ b/samples/react-bot-framework-sso/README.md @@ -48,8 +48,8 @@ This demo does not include any threat models and is designed for educational pur Solution|Author(s) --------|--------- -webpart | STCA BF Channel and ABS (stcabfchannel@microsoft.com)
Stephan Bisser (@stephanbisser, bisser.io) -bot | STCA BF Channel and ABS (stcabfchannel@microsoft.com) +webpart | Bot Framework Discussions (msbots@service.microsoft.com)
Stephan Bisser (@stephanbisser, bisser.io) +bot | Bot Framework Discussions (msbots@service.microsoft.com) ## Version history @@ -187,9 +187,18 @@ Check the [Add authentication to your bot via Azure Bot Service](https://docs.mi ], ``` +- Install modules + + ```bash + cd ../webpart + npm install + ``` + - [Publish and host webpart](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/hosting-webpart-from-office-365-cdn), prepare for approving permissions - Refer [Connect to Azure AD-secured APIs](https://docs.microsoft.com/en-us/sharepoint/api-access) to publish and approve permissions from admin site + - Please ensure your service principal had been enabled for your AAD account. + - Check "Managed application in local directory" in your AAD overview blade in Azure Portal - Go to SharePoint admin center - Find "API Access", approve "" @@ -199,19 +208,6 @@ Check the [Add authentication to your bot via Azure Bot Service](https://docs.mi 2. Navigate to your bot app service, search for CORS settings 3. Add https://localhost:4321 and https://.sharepoint.com to CORS origins -- In the command line run - - ```bash - cd ../webpart - npm install - gulp serve - ``` - - Now web parts is running locally. -- Open online test page with user account: https://.sharepoint.com/_layouts/15/Workbench.aspx -- Config bot endpoint \ - Add the web parts, set bot endpoint to https://YOUR_BOT.azurewebsites.net, refresh this page, then you can successfully connect bot with SharePoint. - ### Setup OAuth via Azure Active Directory for the SharePoint The following operations will need an admin account. @@ -234,6 +230,18 @@ The following operations will need an admin account. - Check the box next to the scope we added in the previous step under "Authorized scopes" - Click "Add application" +### Test web parts +- Go to `webpart` folder, in the command line run + + ```bash + gulp serve + ``` + + Now web parts is running locally. +- Open online test page with user account: https://.sharepoint.com/_layouts/15/Workbench.aspx +- Config bot endpoint \ + Add the web parts, set bot endpoint to https://YOUR_BOT.azurewebsites.net, refresh this page, then you can successfully connect bot with SharePoint. + ## Features **Web Chat integration with SSO** diff --git a/samples/react-bot-framework-sso/webpart/config/package-solution.json b/samples/react-bot-framework-sso/webpart/config/package-solution.json index 469175a8b..6d1a9228d 100644 --- a/samples/react-bot-framework-sso/webpart/config/package-solution.json +++ b/samples/react-bot-framework-sso/webpart/config/package-solution.json @@ -9,7 +9,7 @@ "isDomainIsolated": false, "webApiPermissionRequests": [ { - "resource": "", + "resource": "", "scope": "" } ]