Skip to content

Commit e0bed58

Browse files
authored
Removes unused EnsureSignInScheme method (#28181)
1 parent 4e3a759 commit e0bed58

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Security/Authentication/Core/src/AuthenticationServiceCollectionExtensions.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,5 @@ public static AuthenticationBuilder AddAuthentication(this IServiceCollection se
6565
return builder;
6666
}
6767

68-
// Used to ensure that there's always a sign in scheme
69-
private class EnsureSignInScheme<TOptions> : IPostConfigureOptions<TOptions> where TOptions : RemoteAuthenticationOptions
70-
{
71-
private readonly AuthenticationOptions _authOptions;
72-
73-
public EnsureSignInScheme(IOptions<AuthenticationOptions> authOptions)
74-
{
75-
_authOptions = authOptions.Value;
76-
}
77-
78-
public void PostConfigure(string name, TOptions options)
79-
{
80-
options.SignInScheme ??= _authOptions.DefaultSignInScheme;
81-
}
82-
}
8368
}
8469
}

0 commit comments

Comments
 (0)