Skip to content

Commit 9ddd69d

Browse files
authored
Updating Id Web version and fixing graphics bug (#727)
* changing all samples to Id Web 2.13.3 * fixed navbar bugs * minor documentation edits
1 parent 1d2768a commit 9ddd69d

File tree

30 files changed

+51
-49
lines changed

30 files changed

+51
-49
lines changed

1-WebApp-OIDC/1-1-MyOrg/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
28-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
27+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
28+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2929
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
3030
</ItemGroup>
3131

1-WebApp-OIDC/1-2-AnyOrg/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2323
</ItemGroup>
2424

2525
</Project>

1-WebApp-OIDC/1-3-AnyOrgOrPersonal/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

1-WebApp-OIDC/1-3-AnyOrgOrPersonal/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2323
</ItemGroup>
2424

2525
</Project>

1-WebApp-OIDC/1-4-Sovereign/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

1-WebApp-OIDC/1-4-Sovereign/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2323
</ItemGroup>
2424

2525
</Project>

1-WebApp-OIDC/1-5-B2C/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2323
</ItemGroup>
2424

2525
</Project>

2-WebApp-graph-user/2-1-Call-MSGraph/WebApp-OpenIDConnect-DotNet-graph.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClientBeta" Version="2.13.2" />
13-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
12+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClientBeta" Version="2.13.3" />
13+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
1414
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.5" />
1515
</ItemGroup>
1616

2-WebApp-graph-user/2-2-TokenCache/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ Note: if you had used the automation to setup your application mentioned in [Ste
148148
> // Rest of strings...
149149
> },
150150
> ```
151+
>
151152
152153
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.
153-
154+
> 1. In Visual Studio, open the SQL Server Object Explorer, then (localdb)\MSSQLLocalDB
155+
> 2. Right click on Databases and select "Add New database", and then choose the name of the database: 'MY_TOKEN_CACHE_DATABASE'
154156
```powershell
155157
dotnet tool install --global dotnet-sql-cache
156158
dotnet sql-cache create "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=MY_TOKEN_CACHE_DATABASE;Integrated Security=True;" dbo TokenCache

2-WebApp-graph-user/2-2-TokenCache/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public void ConfigureServices(IServiceCollection services)
3939
// For production deployments, preferably, generate the schema from the tables generated in dev environments and use it to create the necessary tables in production.
4040
/*
4141
* 1. For instance in Visual Studio, open the SQL Server Object explorer, then (localdb)\MSSQLLocalDB, then databases
42-
* 2. Right click on Databases and select "Add New database", and then choose the name of the database: 'MsalTokenCacheDatabase'
42+
* 2. Right click on Databases and select "Add New database", and then choose the name of the database: 'MY_TOKEN_CACHE_DATABASE'
4343
* 3. In the console application run the 2 following commands:
4444
dotnet tool install --global dotnet-sql-cache
45-
dotnet sql-cache create "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=MsalTokenCacheDatabase;Integrated Security=True;" dbo TokenCache
45+
dotnet sql-cache create "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=MY_TOKEN_CACHE_DATABASE;Integrated Security=True;" dbo TokenCache
4646
*/
4747

4848
services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)

2-WebApp-graph-user/2-2-TokenCache/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.8" />
2222
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="3.1.8" />
2323
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="7.0.0" />
24-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
25-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.2" />
24+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
25+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.3" />
2626
</ItemGroup>
2727

2828

2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-MultiTenant-v2.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</PackageReference>
1919
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0" />
2020
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
21-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.13.2" />
21+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.13.3" />
2323
</ItemGroup>
2424

2525
</Project>

2-WebApp-graph-user/2-5-HybridFlow/2-5-HybridFlow.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
12-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.2" />
13-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
11+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
12+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.3" />
13+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
1414
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.3" />
1515
</ItemGroup>
1616

646 Bytes
Binary file not shown.

3-WebApp-multi-APIs/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

3-WebApp-multi-APIs/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
23-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21+
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
23+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2424
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2525
</ItemGroup>
2626

4-WebApp-your-API/4-1-MyOrg/Client/TodoListClient.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
22-
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="2.13.2" />
23-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
22+
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="2.13.3" />
23+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2424
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2525
</ItemGroup>
2626

4-WebApp-your-API/4-1-MyOrg/Client/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

4-WebApp-your-API/4-1-MyOrg/TodoListService/TodoListService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
10+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
1111
</ItemGroup>
1212

1313
</Project>

4-WebApp-your-API/4-2-B2C/Client/TodoListClient.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
26-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
25+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
26+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2727
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
2828
</ItemGroup>
2929

4-WebApp-your-API/4-2-B2C/Client/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

4-WebApp-your-API/4-2-B2C/TodoListService/TodoListService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.2" />
10+
<PackageReference Include="Microsoft.Identity.Web" Version="2.13.3" />
1111
</ItemGroup>
1212

1313
</Project>

4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/ToDoListClient.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
9-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.2" />
8+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
9+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.3" />
1010
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.1" />
1111
</ItemGroup>
1212

4-WebApp-your-API/4-3-AnyOrg/ToDoListClient/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- a scope corresponding to a V1 application (for instance <GUID>/user_impersonation, where <GUID> is the
2323
clientId of a V1 application, created in the https://portal.azure.com portal.
2424
*/
25-
"TodoListServiceAppId": "[Enter_client_ID_Of_TodoListService-v2_from_Azure_Portal,_e.g._2ec40e65-ba09-4853-bcde-bcb60029e596",
25+
"TodoListServiceAppId": "[Enter_client_ID_Of_TodoListService-v2_from_Azure_Portal,_e.g._2ec40e65-ba09-4853-bcde-bcb60029e596]",
2626
"TodoListServiceScope": "api://[Enter_client_ID_Of_TodoListService-v2_from_Azure_Portal,_e.g._2ec40e65-ba09-4853-bcde-bcb60029e596]/.default",
2727
"TodoListBaseAddress": "https://localhost:44351/",
2828
"AdminConsentRedirectApi": "https://localhost:44351/api/Home"

4-WebApp-your-API/4-3-AnyOrg/TodoListService/ToDoListService.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>
17-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.2" />
18-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
17+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.3" />
18+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
1919
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.1" />
2020
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.1" Condition="'$(Configuration)' == 'Debug'" />
2121
</ItemGroup>

5-WebApp-AuthZ/5-1-Roles/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</environment>
1818
</head>
1919
<body>
20-
<nav class="navbar navbar-inverse navbar-fixed-top">
20+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2121
<div class="container">
2222
<div class="navbar-header">
2323
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

5-WebApp-AuthZ/5-1-Roles/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
21-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.13.2" />
20+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
21+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.13.3" />
2222
</ItemGroup>
2323

2424
</Project>

5-WebApp-AuthZ/5-2-Groups/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</environment>
2020
</head>
2121
<body>
22-
<nav class="navbar navbar-inverse navbar-fixed-top">
22+
<nav class="navbar navbar-inverse navbar-toggleable-sm border-bottom box-shadow mb-3">
2323
<div class="container">
2424
<div class="navbar-header">
2525
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
<ItemGroup>
2121
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
22-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.2" />
23-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.2" />
22+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.13.3" />
23+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.13.3" />
2424
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2525
</ItemGroup>
2626

0 commit comments

Comments
 (0)