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

Commit 287eebe

Browse files
committed
Handle change from IList to IEnumerable.
1 parent 81c06fa commit 287eebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.AspNet.Security/Infrastructure/SecurityHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void AddUserIdentity([NotNull] HttpContext context, [NotNull] IIde
3838
context.User = newClaimsPrincipal;
3939
}
4040

41-
public static bool LookupChallenge(IList<string> authenticationTypes, string authenticationType, AuthenticationMode authenticationMode)
41+
public static bool LookupChallenge(IEnumerable<string> authenticationTypes, string authenticationType, AuthenticationMode authenticationMode)
4242
{
4343
bool challengeHasAuthenticationTypes = authenticationTypes != null && authenticationTypes.Any();
4444
if (!challengeHasAuthenticationTypes)
@@ -52,7 +52,7 @@ public static bool LookupChallenge(IList<string> authenticationTypes, string aut
5252
/// Find response sign-in details for a specific authentication middleware
5353
/// </summary>
5454
/// <param name="authenticationType">The authentication type to look for</param>
55-
public static bool LookupSignIn(IList<ClaimsIdentity> identities, string authenticationType, out ClaimsIdentity identity)
55+
public static bool LookupSignIn(IEnumerable<ClaimsIdentity> identities, string authenticationType, out ClaimsIdentity identity)
5656
{
5757
identity = null;
5858
foreach (var claimsIdentity in identities)
@@ -71,7 +71,7 @@ public static bool LookupSignIn(IList<ClaimsIdentity> identities, string authent
7171
/// </summary>
7272
/// <param name="authenticationType">The authentication type to look for</param>
7373
/// <param name="authenticationMode">The authentication mode the middleware is running under</param>
74-
public static bool LookupSignOut(IList<string> authenticationTypes, string authenticationType, AuthenticationMode authenticationMode)
74+
public static bool LookupSignOut(IEnumerable<string> authenticationTypes, string authenticationType, AuthenticationMode authenticationMode)
7575
{
7676
bool singOutHasAuthenticationTypes = authenticationTypes != null && authenticationTypes.Any();
7777
if (!singOutHasAuthenticationTypes)

0 commit comments

Comments
 (0)