From 7a010b4afaf126757898889f20561af5ef90e7a7 Mon Sep 17 00:00:00 2001 From: Judah Gabriel Himango Date: Fri, 5 Oct 2018 10:45:30 -0500 Subject: [PATCH] UserStore implements IQueryableUserStore, enabling 2FA. --- RavenDB.Identity/RavenDB.Identity.csproj | 3 ++- RavenDB.Identity/UserStore.cs | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/RavenDB.Identity/RavenDB.Identity.csproj b/RavenDB.Identity/RavenDB.Identity.csproj index 818be6e..cfe01b9 100644 --- a/RavenDB.Identity/RavenDB.Identity.csproj +++ b/RavenDB.Identity/RavenDB.Identity.csproj @@ -19,9 +19,10 @@ false false false - 4.3.0 + 4.4.0 False Raven.Identity + Implemented IQueryable<TUser>, making it work with 2FA. diff --git a/RavenDB.Identity/UserStore.cs b/RavenDB.Identity/UserStore.cs index ead0009..febb6ca 100644 --- a/RavenDB.Identity/UserStore.cs +++ b/RavenDB.Identity/UserStore.cs @@ -27,7 +27,8 @@ namespace Raven.Identity IUserPhoneNumberStore, IUserAuthenticatorKeyStore, IUserAuthenticationTokenStore, - IUserTwoFactorRecoveryCodeStore + IUserTwoFactorRecoveryCodeStore, + IQueryableUserStore where TUser : IdentityUser { private bool _disposed; @@ -722,6 +723,15 @@ namespace Raven.Identity #endregion + #region IQueryableUserStore + + /// + /// Gets the users as an IQueryable. + /// + public IQueryable Users => this.DbSession.Query(); + + #endregion + private IAsyncDocumentSession DbSession { get