Revert "Remove IExternalLoginService.cs"

This reverts commit 8b2557817b.
This commit is contained in:
Nikolaj Geisle
2022-05-23 10:33:32 +02:00
parent 7a1e134978
commit 882de44e38
6 changed files with 97 additions and 6 deletions

View File

@@ -89,6 +89,30 @@ namespace Umbraco.Cms.Core.Security
}
[Obsolete("Use non obsolete ctor")]
public BackOfficeUserStore(
ICoreScopeProvider scopeProvider,
IUserService userService,
IEntityService entityService,
IExternalLoginService externalLoginService,
IOptions<GlobalSettings> globalSettings,
IUmbracoMapper mapper,
BackOfficeErrorDescriber describer,
AppCaches appCaches)
: this(
scopeProvider,
userService,
entityService,
StaticServiceProvider.Instance.GetRequiredService<IExternalLoginWithKeyService>(),
StaticServiceProvider.Instance.GetRequiredService<IOptionsSnapshot<GlobalSettings>>(),
mapper,
describer,
appCaches,
StaticServiceProvider.Instance.GetRequiredService<ITwoFactorLoginService>())
{
}
/// <inheritdoc />
public override async Task<bool> GetTwoFactorEnabledAsync(BackOfficeIdentityUser user,
CancellationToken cancellationToken = default(CancellationToken))