Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit a01fba5

Browse files
committed
PR fixes
1 parent e17091a commit a01fba5

File tree

9 files changed

+13
-397
lines changed

9 files changed

+13
-397
lines changed

src/Microsoft.AspNetCore.Authentication.Abstractions/AuthenticationHttpContextExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Security.Claims;
55
using System.Threading.Tasks;
66
using Microsoft.AspNetCore.Http;
7+
using Microsoft.Extensions.DependencyInjection;
78

89
namespace Microsoft.AspNetCore.Authentication
910
{

src/Microsoft.AspNetCore.Authentication.Abstractions/Microsoft.AspNetCore.Authentication.Abstractions.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
<Import Project="..\..\build\common.props" />
33
<PropertyGroup>
44
<Description>ASP.NET Core common types used by the various authentication components.</Description>
5-
<VersionPrefix>1.2.0</VersionPrefix>
65
<TargetFrameworks>netstandard1.3;net46</TargetFrameworks>
76
<NoWarn>$(NoWarn);CS1591</NoWarn>
87
<GenerateDocumentationFile>true</GenerateDocumentationFile>
98
<PackageTags>aspnetcore;authentication;security</PackageTags>
109
</PropertyGroup>
10+
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="1.2.0-*" />
13-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.2.0-*" />
14-
<ProjectReference Include="..\..\..\Options\src\Microsoft.Extensions.Options\Microsoft.Extensions.Options.csproj" />
15-
<PackageReference Include="Microsoft.Extensions.TaskCache.Sources" Version="1.2.0-*" PrivateAssets="All" />
12+
<ProjectReference Include="..\Microsoft.AspNetCore.Http.Abstractions\Microsoft.AspNetCore.Http.Abstractions.csproj" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(AspNetCoreVersion)" />
17+
<PackageReference Include="Microsoft.Extensions.Options" Version="$(AspNetCoreVersion)" />
18+
<PackageReference Include="Microsoft.Extensions.TaskCache.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
1619
</ItemGroup>
1720
<ItemGroup>
1821
<Folder Include="Properties\" />

src/Microsoft.AspNetCore.Authentication.Core/AuthenticationSchemeProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public AuthenticationSchemeProvider(IOptions<AuthenticationOptions> options)
3030
private readonly AuthenticationOptions _options;
3131
private readonly object _lock = new object();
3232

33-
private IDictionary<string, AuthenticationScheme> _map = new Dictionary<string, AuthenticationScheme>(StringComparer.Ordinal); // case sensitive?
33+
private IDictionary<string, AuthenticationScheme> _map = new Dictionary<string, AuthenticationScheme>(StringComparer.Ordinal);
3434

3535
private List<AuthenticationScheme> _requestHandlers = new List<AuthenticationScheme>();
3636

@@ -82,7 +82,7 @@ public Task<AuthenticationScheme> GetSchemeAsync(string name)
8282
return Task.FromResult<AuthenticationScheme>(null);
8383
}
8484

85-
public Task<IEnumerable<AuthenticationScheme>> GetRequestHandlerSchemesAsync(PathString requestPath)
85+
public Task<IEnumerable<AuthenticationScheme>> GetRequestHandlerSchemesAsync()
8686
{
8787
return Task.FromResult<IEnumerable<AuthenticationScheme>>(_requestHandlers);
8888
}

src/Microsoft.AspNetCore.Authentication.Core/AuthenticationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public virtual async Task SignInAsync(HttpContext httpContext, string authentica
8787
authenticationScheme = defaultScheme?.Name;
8888
if (authenticationScheme == null)
8989
{
90-
throw new InvalidOperationException($"No authenticationScheme was specified, and there was no DefaultAuthenticateScheme found.");
90+
throw new InvalidOperationException($"No authenticationScheme was specified, and there was no DefaultSignInScheme found.");
9191
}
9292
}
9393

test/Microsoft.AspNetCore.Authentication.Core.Test/AuthenticationMiddlewareTests.cs

Lines changed: 0 additions & 181 deletions
This file was deleted.

test/Microsoft.AspNetCore.Authentication.Core.Test/Microsoft.AspNetCore.Authentication.Core.Test.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
<Import Project="..\..\build\common.props" />
44
<PropertyGroup>
5-
<TargetFrameworks>netcoreapp1.1;net452</TargetFrameworks>
5+
<TargetFrameworks>netcoreapp1.1;net46</TargetFrameworks>
66
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp1.1</TargetFrameworks>
77
</PropertyGroup>
88
<ItemGroup>
99
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Authentication.Core\Microsoft.AspNetCore.Authentication.Core.csproj" />
1010
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0-*" />
1111
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0-*" />
12-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="1.2.0-*" />
1312
<PackageReference Include="Microsoft.AspNetCore.Testing" Version="1.2.0-*" />
1413
<PackageReference Include="xunit" Version="2.2.0-*" />
1514
</ItemGroup>

test/Microsoft.AspNetCore.Authentication.Core.Test/TestExtensions.cs

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)