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

Commit 300d69e

Browse files
committed
Remove ConfigureDefaultOptions
1 parent 9698f53 commit 300d69e

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
using System;
55
using Microsoft.AspNetCore.Authentication;
66
using Microsoft.Extensions.DependencyInjection.Extensions;
7-
using Microsoft.Extensions.Configuration;
8-
using Microsoft.Extensions.Options.Infrastructure;
97

108
namespace Microsoft.Extensions.DependencyInjection
119
{
@@ -30,7 +28,6 @@ public static IServiceCollection AddAuthenticationCore(this IServiceCollection s
3028
services.TryAddSingleton<IClaimsTransformation, NoopClaimsTransformation>(); // Can be replaced with scoped ones that use DbContext
3129
services.TryAddScoped<IAuthenticationHandlerProvider, AuthenticationHandlerProvider>();
3230
services.TryAddSingleton<IAuthenticationSchemeProvider, AuthenticationSchemeProvider>();
33-
services.AddTransient<ConfigureDefaultOptions<AuthenticationOptions>, DefaultConfigureOptions>();
3431
return services;
3532
}
3633

@@ -55,13 +52,5 @@ public static IServiceCollection AddAuthenticationCore(this IServiceCollection s
5552
services.Configure(configureOptions);
5653
return services;
5754
}
58-
59-
private class DefaultConfigureOptions : ConfigureDefaultOptions<AuthenticationOptions>
60-
{
61-
public DefaultConfigureOptions(IConfiguration config) :
62-
base(options => config.GetSection("Microsoft:AspNetCore:Authentication").Bind(options))
63-
{ }
64-
}
65-
6655
}
6756
}

src/Microsoft.AspNetCore.Authentication.Core/Microsoft.AspNetCore.Authentication.Core.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<ProjectReference Include="..\Microsoft.AspNetCore.Authentication.Abstractions\Microsoft.AspNetCore.Authentication.Abstractions.csproj" />
1616
<ProjectReference Include="..\Microsoft.AspNetCore.Http\Microsoft.AspNetCore.Http.csproj" />
1717
<ProjectReference Include="..\Microsoft.AspNetCore.Http.Extensions\Microsoft.AspNetCore.Http.Extensions.csproj" />
18-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="$(AspNetCoreVersion)" />
1918
<PackageReference Include="Microsoft.Extensions.TaskCache.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
2019
</ItemGroup>
2120

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

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

0 commit comments

Comments
 (0)