Skip to content

Commit 1ca039f

Browse files
authored
Remove unused SignInManager.CreateIdentity (#27026)
The private method CreateIdentity on SignInManager is not called from anywhere
1 parent 100f687 commit 1ca039f

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Identity/Core/src/SignInManager.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -763,22 +763,7 @@ internal async Task<ClaimsPrincipal> StoreRememberClient(TUser user)
763763
}
764764
return new ClaimsPrincipal(rememberBrowserIdentity);
765765
}
766-
767-
private ClaimsIdentity CreateIdentity(TwoFactorAuthenticationInfo info)
768-
{
769-
if (info == null)
770-
{
771-
return null;
772-
}
773-
var identity = new ClaimsIdentity(IdentityConstants.TwoFactorUserIdScheme);
774-
identity.AddClaim(new Claim(ClaimTypes.Name, info.UserId));
775-
if (info.LoginProvider != null)
776-
{
777-
identity.AddClaim(new Claim(ClaimTypes.AuthenticationMethod, info.LoginProvider));
778-
}
779-
return identity;
780-
}
781-
766+
782767
private async Task<bool> IsTfaEnabled(TUser user)
783768
=> UserManager.SupportsUserTwoFactor &&
784769
await UserManager.GetTwoFactorEnabledAsync(user) &&

0 commit comments

Comments
 (0)