Skip to content

Commit 2fb7f0d

Browse files
authored
Updating to Ms.Id.Web 1.0.0 (#423)
1 parent 6f6aa0f commit 2fb7f0d

File tree

25 files changed

+47
-51
lines changed

25 files changed

+47
-51
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
@@ -25,8 +25,8 @@
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
2727
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.0.0" />
28-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
29-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
28+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
29+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
3030
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
3131
</ItemGroup>
3232

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="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2323
</ItemGroup>
2424

2525
</Project>

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="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2323
</ItemGroup>
2424

2525
</Project>

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="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2323
</ItemGroup>
2424

2525
</Project>

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="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2323
</ItemGroup>
2424

2525
</Project>

2-WebApp-graph-user/2-1-Call-MSGraph/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="Microsoft.Identity.Web" Version="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
23-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
23+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
2424
</ItemGroup>
2525

2626

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
<ItemGroup>
2121
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.8" />
2222
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="3.1.8" />
23-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
24-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
25-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
23+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
24+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
25+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
2626
</ItemGroup>
2727

2828

2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<ItemGroup>
2222
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.8" />
2323
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.8" />
24-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
25-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
26-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
24+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
25+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
26+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
2727
</ItemGroup>
2828

2929
</Project>

2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Controllers/HomeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using Microsoft.AspNetCore.Authorization;
44
using Microsoft.AspNetCore.Mvc;
55
using Microsoft.Identity.Web;
6-
using WebApp_OpenIDConnect_DotNet.Infrastructure;
76
using WebApp_OpenIDConnect_DotNet.Models;
87
using WebApp_OpenIDConnect_DotNet.Services.GraphOperations;
8+
using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants;
99

1010
namespace WebApp_OpenIDConnect_DotNet.Controllers
1111
{
@@ -27,7 +27,7 @@ public IActionResult Index()
2727
return View();
2828
}
2929

30-
[AuthorizeForScopes(Scopes = new[] {Constants.ScopeUserRead})]
30+
[AuthorizeForScopes(Scopes = new[] { Constants.ScopeUserRead})]
3131
public async Task<IActionResult> Profile()
3232
{
3333
var accessToken =

2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/Startup.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
using Microsoft.Extensions.Configuration;
1010
using Microsoft.Extensions.DependencyInjection;
1111
using Microsoft.Identity.Web;
12-
using Microsoft.Identity.Web.TokenCacheProviders.InMemory;
13-
using WebApp_OpenIDConnect_DotNet.Infrastructure;
1412
using WebApp_OpenIDConnect_DotNet.Services.GraphOperations;
1513
using Microsoft.Extensions.Hosting;
1614
using Microsoft.Identity.Web.UI;
1715
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
16+
using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants;
1817

1918
namespace WebApp_OpenIDConnect_DotNet
2019
{

2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/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="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2323
</ItemGroup>
2424

2525
</Project>

3-WebApp-multi-APIs/Controllers/HomeController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
using Microsoft.WindowsAzure.Storage.Auth;
55
using Microsoft.WindowsAzure.Storage.Blob;
66
using System;
7-
using System.Collections.Generic;
87
using System.Diagnostics;
98
using System.Threading.Tasks;
10-
using WebApp_OpenIDConnect_DotNet.Infrastructure;
9+
using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants;
1110
using WebApp_OpenIDConnect_DotNet.Models;
1211
using WebApp_OpenIDConnect_DotNet.Services.Arm;
1312
using WebApp_OpenIDConnect_DotNet.Services.GraphOperations;

3-WebApp-multi-APIs/Services/MicrosoftGraph-Rest/IGraphApiOperations.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Microsoft.AspNetCore.Http;
2-
using Microsoft.Identity.Web;
31
using System;
42
using System.Collections.Generic;
53
using System.Threading.Tasks;

3-WebApp-multi-APIs/Startup.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
using Microsoft.Extensions.Configuration;
1010
using Microsoft.Extensions.DependencyInjection;
1111
using Microsoft.Identity.Web;
12-
using Microsoft.Identity.Web.TokenCacheProviders.InMemory;
13-
using WebApp_OpenIDConnect_DotNet.Infrastructure;
1412
using WebApp_OpenIDConnect_DotNet.Services.Arm;
1513
using WebApp_OpenIDConnect_DotNet.Services.GraphOperations;
1614
using Microsoft.Extensions.Hosting;
17-
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
1815
using Microsoft.Identity.Web.UI;
16+
using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants;
1917

2018
namespace WebApp_OpenIDConnect_DotNet
2119
{

3-WebApp-multi-APIs/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="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2323
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
2424
</ItemGroup>
2525

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

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

2424
<ItemGroup>
2525
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Abstractions" Version="3.1.1" />
26-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
27-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
26+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
27+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2828
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
2929
</ItemGroup>
3030

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="0.4.0-preview" />
10+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
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
@@ -23,8 +23,8 @@
2323

2424
<ItemGroup>
2525
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Abstractions" Version="3.1.1" />
26-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
27-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
26+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
27+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2828
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
2929
</ItemGroup>
3030

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="0.4.0-preview" />
10+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
1111
</ItemGroup>
1212

1313
</Project>

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

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

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
9-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
10-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
8+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
9+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
10+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
1111
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.3" />
1212
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
1313
</ItemGroup>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>
18-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
19-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
18+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
19+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
2020
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.3" />
2121
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.3" Condition="'$(Configuration)' == 'Debug'" />
2222
</ItemGroup>

5-WebApp-AuthZ/5-1-Roles/Controllers/HomeController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using WebApp_OpenIDConnect_DotNet.Models;
1111
using WebApp_OpenIDConnect_DotNet.Services;
1212
using Graph = Microsoft.Graph;
13+
using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants;
1314

1415
namespace WebApp_OpenIDConnect_DotNet.Controllers
1516
{

5-WebApp-AuthZ/5-1-Roles/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="Microsoft.Identity.Web" Version="0.4.0-preview" />
22-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
23-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
21+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
22+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
23+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
2424
</ItemGroup>
2525

2626
</Project>

5-WebApp-AuthZ/5-2-Groups/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using System;
1313
using WebApp_OpenIDConnect_DotNet.Infrastructure;
1414
using WebApp_OpenIDConnect_DotNet.Services;
15+
using Constants = WebApp_OpenIDConnect_DotNet.Infrastructure.Constants;
1516

1617
namespace WebApp_OpenIDConnect_DotNet
1718
{

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

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

2020
<ItemGroup>
2121
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.2.0" />
22-
<PackageReference Include="Microsoft.Identity.Web" Version="0.4.0-preview" />
23-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="0.4.0-preview" />
24-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="0.4.0-preview" />
22+
<PackageReference Include="Microsoft.Identity.Web" Version="1.0.0" />
23+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.0.0" />
24+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.0.0" />
2525
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
2626
</ItemGroup>
2727

0 commit comments

Comments
 (0)