Removed deprecated methods from ITwoFactorLoginService (#18880)

This commit is contained in:
Lee Kelleher
2025-03-31 10:03:01 +01:00
committed by GitHub
parent 3446b77d7d
commit 19123b4799

View File

@@ -22,16 +22,6 @@ public interface ITwoFactorLoginService : IService
/// </summary>
Task<string?> GetSecretForUserAndProviderAsync(Guid userOrMemberKey, string providerName);
/// <summary>
/// Gets the setup info for a specific user or member and a specific provider.
/// </summary>
/// <remarks>
/// The returned type can be anything depending on the setup providers. You will need to cast it to the type handled by
/// the provider.
/// </remarks>
[Obsolete("Use IUserTwoFactorLoginService.GetSetupInfoAsync or IMemberTwoFactorLoginService.GetSetupInfoAsync. Scheduled for removal in Umbraco 16.")]
Task<object?> GetSetupInfoAsync(Guid userOrMemberKey, string providerName);
/// <summary>
/// Gets all registered providers names.
/// </summary>
@@ -56,17 +46,4 @@ public interface ITwoFactorLoginService : IService
/// Gets all the enabled 2FA providers for the user or member with the specified key.
/// </summary>
Task<IEnumerable<string>> GetEnabledTwoFactorProviderNamesAsync(Guid userOrMemberKey);
/// <summary>
/// Disables 2FA with Code.
/// </summary>
[Obsolete("Use IUserTwoFactorLoginService.DisableByCodeAsync or IMemberTwoFactorLoginService.DisableByCodeAsync. Scheduled for removal in Umbraco 16.")]
Task<bool> DisableWithCodeAsync(string providerName, Guid userOrMemberKey, string code);
/// <summary>
/// Validates and Saves.
/// </summary>
[Obsolete("Use IUserTwoFactorLoginService.ValidateAndSaveAsync or IMemberTwoFactorLoginService.ValidateAndSaveAsync. Scheduled for removal in Umbraco 16.")]
Task<bool> ValidateAndSaveAsync(string providerName, Guid userKey, string secret, string code);
}