API Diff between 1.0.11-preview-20180529-1 and 7.1.77
261 Additions
8 Removals
Util.Helpers
Util.Security
Util.Security.Authentication
Util.Security.Authorization
Util.Security.Encryptors
Util.Security.Identity.Describers
Util.Security.Identity.Extensions
Util.Security.Identity.Models
-
public abstract class Application<TApplication, TKey> : AggregateRoot<TApplication, TKey>, IDelete, IAudited, ICreationAudited, ICreationAudited<Guid?>, IModificationAudited, IModificationAudited<Guid?> where TApplication : Application<TApplication, TKey>
-
public abstract class Role<TRole, TKey, TParentId> : TreeEntityBase<TRole, TKey, TParentId>, IDelete, IAudited, ICreationAudited, ICreationAudited<Guid?>, IModificationAudited, IModificationAudited<Guid?> where TRole : Role<TRole, TKey, TParentId>
-
public abstract class User<TUser, TKey> : AggregateRoot<TUser, TKey>, IDelete, IAudited, ICreationAudited, ICreationAudited<Guid?>, IModificationAudited, IModificationAudited<Guid?> where TUser : User<TUser, TKey>
Util.Security.Identity.Options
Util.Security.Identity.Repositories
-
public interface IApplicationRepository<TApplication, TKey> : IRepository<TApplication, TKey>, IQueryRepository<TApplication, TKey>, IQueryStore<TApplication, TKey>, IScopeDependency, IFindQueryable<TApplication, TKey>, IFindById<TApplication, TKey>, IFindByIdAsync<TApplication, TKey>, IFindByIds<TApplication, TKey>, IFindByIdsAsync<TApplication, TKey>, IFindByIdNoTracking<TApplication, TKey>, IFindByIdNoTrackingAsync<TApplication, TKey>, IFindByIdsNoTracking<TApplication, TKey>, IFindByIdsNoTrackingAsync<TApplication, TKey>, ISingle<TApplication, TKey>, ISingleAsync<TApplication, TKey>, IFindAll<TApplication, TKey>, IFindAllAsync<TApplication, TKey>, IFindAllNoTracking<TApplication, TKey>, IFindAllNoTrackingAsync<TApplication, TKey>, IExists<TApplication, TKey>, IExistsAsync<TApplication, TKey>, IExistsByExpression<TApplication, TKey>, IExistsByExpressionAsync<TApplication, TKey>, ICount<TApplication, TKey>, ICountAsync<TApplication, TKey>, IPageQuery<TApplication, TKey>, IPageQueryAsync<TApplication, TKey>, IStore<TApplication, TKey>, IAdd<TApplication, TKey>, IAddAsync<TApplication, TKey>, IUpdate<TApplication, TKey>, IUpdateAsync<TApplication, TKey>, IRemove<TApplication, TKey>, IRemoveAsync<TApplication, TKey> where TApplication : Application<TApplication, TKey>
-
public interface IRoleRepository<TRole, TKey, TParentId> : ITreeRepository<TRole, TKey, TParentId>, IRepository<TRole, TKey>, IQueryRepository<TRole, TKey>, IQueryStore<TRole, TKey>, IScopeDependency, IFindQueryable<TRole, TKey>, IFindById<TRole, TKey>, IFindByIdAsync<TRole, TKey>, IFindByIds<TRole, TKey>, IFindByIdsAsync<TRole, TKey>, IFindByIdNoTracking<TRole, TKey>, IFindByIdNoTrackingAsync<TRole, TKey>, IFindByIdsNoTracking<TRole, TKey>, IFindByIdsNoTrackingAsync<TRole, TKey>, ISingle<TRole, TKey>, ISingleAsync<TRole, TKey>, IFindAll<TRole, TKey>, IFindAllAsync<TRole, TKey>, IFindAllNoTracking<TRole, TKey>, IFindAllNoTrackingAsync<TRole, TKey>, IExists<TRole, TKey>, IExistsAsync<TRole, TKey>, IExistsByExpression<TRole, TKey>, IExistsByExpressionAsync<TRole, TKey>, ICount<TRole, TKey>, ICountAsync<TRole, TKey>, IPageQuery<TRole, TKey>, IPageQueryAsync<TRole, TKey>, IStore<TRole, TKey>, IAdd<TRole, TKey>, IAddAsync<TRole, TKey>, IUpdate<TRole, TKey>, IUpdateAsync<TRole, TKey>, IRemove<TRole, TKey>, IRemoveAsync<TRole, TKey>, ITreeCompactRepository<TRole, TKey, TParentId>, ICompactRepository<TRole, TKey> where TRole : Role<TRole, TKey, TParentId>
-
public interface IUserRepository<TUser, TKey> : IRepository<TUser, TKey>, IQueryRepository<TUser, TKey>, IQueryStore<TUser, TKey>, IScopeDependency, IFindQueryable<TUser, TKey>, IFindById<TUser, TKey>, IFindByIdAsync<TUser, TKey>, IFindByIds<TUser, TKey>, IFindByIdsAsync<TUser, TKey>, IFindByIdNoTracking<TUser, TKey>, IFindByIdNoTrackingAsync<TUser, TKey>, IFindByIdsNoTracking<TUser, TKey>, IFindByIdsNoTrackingAsync<TUser, TKey>, ISingle<TUser, TKey>, ISingleAsync<TUser, TKey>, IFindAll<TUser, TKey>, IFindAllAsync<TUser, TKey>, IFindAllNoTracking<TUser, TKey>, IFindAllNoTrackingAsync<TUser, TKey>, IExists<TUser, TKey>, IExistsAsync<TUser, TKey>, IExistsByExpression<TUser, TKey>, IExistsByExpressionAsync<TUser, TKey>, ICount<TUser, TKey>, ICountAsync<TUser, TKey>, IPageQuery<TUser, TKey>, IPageQueryAsync<TUser, TKey>, IStore<TUser, TKey>, IAdd<TUser, TKey>, IAddAsync<TUser, TKey>, IUpdate<TUser, TKey>, IUpdateAsync<TUser, TKey>, IRemove<TUser, TKey>, IRemoveAsync<TUser, TKey> where TUser : User<TUser, TKey>
Util.Security.Identity.Results
Util.Security.Identity.Services.Abstractions
-
public interface IRoleManager<TRole, TKey, TParentId> : IDomainService, IScopeDependency where TRole : Role<TRole, TKey, TParentId>
-
public interface ISignInManager<TUser, TKey> : IDomainService, IScopeDependency where TUser : User<TUser, TKey>
- Task<SignInResult> SignInAsync(string account, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- Task<SignInResult> SignInByEmailAsync(string email, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- Task<SignInResult> SignInByPhoneAsync(string phoneNumber, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- Task<SignInResult> SignInByUserNameAsync(string userName, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- Task SignOutAsync()
-
public interface IUserManager<TUser, TKey> : IDomainService, IScopeDependency where TUser : User<TUser, TKey>
- Task ChangePasswordAsync(TUser user, string currentPassword, string newPassword)
- Task ConfirmEmailAsync(TUser user, string token)
- Task CreateAsync(TUser user, string password)
- Task<TUser> FindByEmailAsync(string email)
- Task<TUser> FindByNameAsync(string userName)
- Task<TUser> FindByPhoneAsync(string phoneNumber)
- Task<string> GenerateEmailConfirmationTokenAsync(TUser user)
- Task<string> GenerateEmailPasswordResetTokenAsync(TUser user)
- Task<string> GeneratePhonePasswordResetTokenAsync(TUser user)
- Task<string> GenerateRegisterTokenAsync(string phone, string application = "")
- Task<string> GenerateTokenAsync(string phone, string purpose, string application = "", string provider = "")
- Task<string> GenerateTokenAsync(TUser user, string purpose, string application = "", string provider = "")
- Task ResetPasswordByEmailAsync(TUser user, string token, string newPassword)
- Task ResetPasswordByPhoneAsync(TUser user, string token, string newPassword)
- Task<bool> VerifyRegisterTokenAsync(string phone, string token, string application = "")
- Task<bool> VerifyTokenAsync(string phone, string purpose, string token, string application = "", string provider = "")
- Task<bool> VerifyTokenAsync(TUser user, string purpose, string token, string application = "", string provider = "")
Util.Security.Identity.Services.Configs
Util.Security.Identity.Services.Implements
-
public class IdentitySignInManager<TUser, TKey> : SignInManager<TUser> where TUser : User<TUser, TKey>
-
public class IdentityUserManager<TUser, TKey> : AspNetUserManager<TUser> where TUser : User<TUser, TKey>
- public IdentityUserManager(IUserStore<TUser> store, IOptions<IdentityOptions> optionsAccessor, IPasswordHasher<TUser> passwordHasher, IEnumerable<IUserValidator<TUser>> userValidators, IEnumerable<IPasswordValidator<TUser>> passwordValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger<UserManager<TUser>> logger)
- public Task<IdentityResult> ResetPasswordAsync(TUser user, string tokenProvidor, string token, string newPassword)
-
public abstract class RoleManager<TRole, TKey, TParentId> : DomainServiceBase, IRoleManager<TRole, TKey, TParentId>, IDomainService, IScopeDependency where TRole : Role<TRole, TKey, TParentId>
-
public class SignInManager<TUser, TKey> : ISignInManager<TUser, TKey>, IDomainService, IScopeDependency where TUser : User<TUser, TKey>
- protected IdentitySignInManager<TUser, TKey> IdentitySignInManager { get; }
- protected IUserManager<TUser, TKey> UserManager { get; }
- public SignInManager(IdentitySignInManager<TUser, TKey> signInManager, IUserManager<TUser, TKey> userManager)
- protected virtual Task AddClaimsToUser(TUser user, string applicationCode)
- public Task<SignInResult> SignInAsync(string account, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- public Task<SignInResult> SignInByEmailAsync(string email, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- public Task<SignInResult> SignInByPhoneAsync(string phoneNumber, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- public Task<SignInResult> SignInByUserNameAsync(string userName, string password, bool isPersistent = false, bool lockoutOnFailure = true, string applicationCode = "")
- public Task SignOutAsync()
-
public class UserManager<TUser, TKey> : DomainServiceBase, IUserManager<TUser, TKey>, IDomainService, IScopeDependency where TUser : User<TUser, TKey>
- public UserManager(IdentityUserManager<TUser, TKey> userManager, IOptions<PermissionOptions> options, IUserRepository<TUser, TKey> userRepository)
- public Task ChangePasswordAsync(TUser user, string currentPassword, string newPassword)
- public Task ConfirmEmailAsync(TUser user, string token)
- public Task CreateAsync(TUser user, string password)
- protected virtual string CreateSecurityStamp()
- public Task<TUser> FindByEmailAsync(string email)
- public Task<TUser> FindByNameAsync(string userName)
- public Task<TUser> FindByPhoneAsync(string phoneNumber)
- public Task<string> GenerateEmailConfirmationTokenAsync(TUser user)
- public Task<string> GenerateEmailPasswordResetTokenAsync(TUser user)
- public Task<string> GeneratePhonePasswordResetTokenAsync(TUser user)
- public Task<string> GenerateRegisterTokenAsync(string phone, string application = "")
- public Task<string> GenerateTokenAsync(string phone, string purpose, string application = "", string provider = "")
- public Task<string> GenerateTokenAsync(TUser user, string purpose, string application = "", string provider = "")
- public Task ResetPasswordByEmailAsync(TUser user, string token, string newPassword)
- public Task ResetPasswordByPhoneAsync(TUser user, string token, string newPassword)
- public Task<bool> VerifyRegisterTokenAsync(string phone, string token, string application = "")
- public Task<bool> VerifyTokenAsync(string phone, string purpose, string token, string application = "", string provider = "")
- public Task<bool> VerifyTokenAsync(TUser user, string purpose, string token, string application = "", string provider = "")
Util.Security.Principals
Util.Security.Sessions