From 829d26d00f37cf9ac14284996a496e92017a1f9e Mon Sep 17 00:00:00 2001 From: Alexander Beyderman Date: Mon, 29 Aug 2022 06:56:44 -0400 Subject: [PATCH] added a note to create a database before trying to create sql cache table --- .../2-2-TokenCache/2-2-TokenCache.sln | 13 +++++++++++-- 2-WebApp-graph-user/2-2-TokenCache/README.md | 4 +++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/2-WebApp-graph-user/2-2-TokenCache/2-2-TokenCache.sln b/2-WebApp-graph-user/2-2-TokenCache/2-2-TokenCache.sln index 3c996f27..09f8b303 100644 --- a/2-WebApp-graph-user/2-2-TokenCache/2-2-TokenCache.sln +++ b/2-WebApp-graph-user/2-2-TokenCache/2-2-TokenCache.sln @@ -1,10 +1,19 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30413.136 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32819.101 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApp-OpenIDConnect-DotNet", "WebApp-OpenIDConnect-DotNet.csproj", "{76F9C1E5-3CF7-4C9A-A0EC-D15B5F11022D}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppCreationScripts", "AppCreationScripts", "{FC0F3826-20F8-499E-A4B5-27A4FE992F8C}" + ProjectSection(SolutionItems) = preProject + AppCreationScripts\AppCreationScripts.md = AppCreationScripts\AppCreationScripts.md + AppCreationScripts\Cleanup.ps1 = AppCreationScripts\Cleanup.ps1 + AppCreationScripts\Configure.ps1 = AppCreationScripts\Configure.ps1 + AppCreationScripts\createdApps.html = AppCreationScripts\createdApps.html + AppCreationScripts\sample.json = AppCreationScripts\sample.json + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/2-WebApp-graph-user/2-2-TokenCache/README.md b/2-WebApp-graph-user/2-2-TokenCache/README.md index bd1b1355..cd4ecea8 100644 --- a/2-WebApp-graph-user/2-2-TokenCache/README.md +++ b/2-WebApp-graph-user/2-2-TokenCache/README.md @@ -148,13 +148,15 @@ Note: if you had used the automation to setup your application mentioned in [Ste > }, > ``` -1. If you do not have an existing database and tables needed for token caching, you can execute the `dotnet sql-cache create` command to create the table for you. To do that, follow the steps below. +1. If you do not have a tables needed for token caching, you can execute the `dotnet sql-cache create` command to create the table for you. To do that, follow the steps below. ```powershell dotnet tool install --global dotnet-sql-cache dotnet sql-cache create "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=MY_TOKEN_CACHE_DATABASE;Integrated Security=True;" dbo TokenCache ``` + > The database **should exist** before running the above command! + - In case you want to deploy your app in Sovereign or national clouds, ensure the `GraphApiUrl` option matches the one you want. By default this is Microsoft Graph in the Azure public cloud ```JSon