File tree 4 files changed +3
-15
lines changed 4 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 6.0.100-preview.7.21354.4 " ,
3
+ "version" : " 6.0.100-preview.7.21356.1 " ,
4
4
"allowPrerelease" : false ,
5
5
"rollForward" : " latestMajor"
6
6
}
Original file line number Diff line number Diff line change 2
2
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
3
3
4
4
using System . IO ;
5
- using System . Security . Claims ;
6
5
using Microsoft . AspNetCore . Builder ;
7
6
using Microsoft . AspNetCore . Hosting ;
8
- using Microsoft . AspNetCore . Http ;
9
7
using Microsoft . EntityFrameworkCore ;
10
8
using Microsoft . Extensions . Configuration ;
11
9
using Microsoft . Extensions . DependencyInjection ;
22
20
builder . Services . AddScoped < ITodoRepository , TodoRepository > ( ) ;
23
21
builder . Services . AddScoped < ITodoService , TodoService > ( ) ;
24
22
25
- // TODO Remove if ClaimsPrincipal support is added to minimal actions.
26
- // See https://github.com/dotnet/aspnetcore/issues/33870
27
- // and https://github.com/dotnet/aspnetcore/pull/33883.
28
- builder . Services . AddHttpContextAccessor ( ) ;
29
- builder . Services . AddScoped < ClaimsPrincipal > ( ( p ) =>
30
- {
31
- var context = p . GetRequiredService < IHttpContextAccessor > ( ) ;
32
- return context . HttpContext ! . User ;
33
- } ) ;
34
-
35
23
builder . Services . AddGitHubAuthentication ( ) ;
36
24
builder . Services . AddHttpClient ( ) ;
37
25
builder . Services . AddRazorPages ( ) ;
Original file line number Diff line number Diff line change 9
9
</PropertyGroup >
10
10
<ItemGroup >
11
11
<PackageReference Include =" AspNet.Security.OAuth.GitHub" Version =" 6.0.0-preview.5.21319.40" />
12
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 6.0.0-preview.7.21329 .1" />
12
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 6.0.0-preview.7.21351 .1" />
13
13
<PackageReference Include =" Microsoft.TypeScript.MSBuild" Version =" 4.3.2" PrivateAssets =" all" />
14
14
<PackageReference Include =" NodaTime" Version =" 3.0.5" />
15
15
<PackageReference Include =" Swashbuckle.AspNetCore" Version =" 6.1.4" />
Original file line number Diff line number Diff line change 8
8
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
9
9
<PackageReference Include =" JustEat.HttpClientInterception" Version =" 3.1.0" />
10
10
<PackageReference Include =" MartinCostello.Logging.XUnit" Version =" 0.1.1" />
11
- <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 6.0.0-preview.7.21330.3 " />
11
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 6.0.0-preview.7.21355.4 " />
12
12
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.10.0" />
13
13
<PackageReference Include =" Microsoft.Playwright" Version =" 1.12.2" />
14
14
<PackageReference Include =" Shouldly" Version =" 4.0.3" />
You can’t perform that action at this time.
0 commit comments