Search Results for

    Show / Hide Table of Contents

    Interface ILocalUserManager

    Namespace: ImageVault.Web.Security
    Assembly: ImageVault.Web.dll
    Syntax
    public interface ILocalUserManager

    Methods

    ChangeEmailAsync(String, String)

    Declaration
    Task<ChangeEmailResult> ChangeEmailAsync(string userId, string email)
    Parameters
    Type Name Description
    System.String userId
    System.String email
    Returns
    Type Description
    System.Threading.Tasks.Task<ChangeEmailResult>

    ChangePasswordAsync(String, String, String)

    Declaration
    Task<ChangePasswordResult> ChangePasswordAsync(string userId, string oldPassword, string newPassword)
    Parameters
    Type Name Description
    System.String userId
    System.String oldPassword
    System.String newPassword
    Returns
    Type Description
    System.Threading.Tasks.Task<ChangePasswordResult>

    CreateUserAsync(String, String, String, Nullable<Boolean>)

    Declaration
    Task<CreateUserResult> CreateUserAsync(string userName, string password, string email, bool? isApproved)
    Parameters
    Type Name Description
    System.String userName
    System.String password
    System.String email
    System.Nullable<System.Boolean> isApproved
    Returns
    Type Description
    System.Threading.Tasks.Task<CreateUserResult>

    DeleteUserAsync(String)

    Declaration
    Task<bool> DeleteUserAsync(string userId)
    Parameters
    Type Name Description
    System.String userId
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    GetAllUsersAsync(Int32, Int32)

    Declaration
    Task<DataPage<ILocalUser>> GetAllUsersAsync(int page, int pageSize)
    Parameters
    Type Name Description
    System.Int32 page
    System.Int32 pageSize
    Returns
    Type Description
    System.Threading.Tasks.Task<DataPage<ILocalUser>>

    GetLoginsAsync(String)

    Declaration
    Task<IList<UserLoginInfo>> GetLoginsAsync(string userId)
    Parameters
    Type Name Description
    System.String userId
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.Identity.UserLoginInfo>>

    GetRolesForUserAsync(String)

    Declaration
    Task<IList<string>> GetRolesForUserAsync(string username)
    Parameters
    Type Name Description
    System.String username
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IList<System.String>>

    GetUserByIdAsync(String)

    Declaration
    Task<ILocalUser> GetUserByIdAsync(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type Description
    System.Threading.Tasks.Task<ILocalUser>

    GetUserByUsernameAsync(String, Boolean)

    Declaration
    Task<ILocalUser> GetUserByUsernameAsync(string username, bool userIsOnline)
    Parameters
    Type Name Description
    System.String username
    System.Boolean userIsOnline
    Returns
    Type Description
    System.Threading.Tasks.Task<ILocalUser>

    RemoveLoginAsync(String, UserLoginInfo)

    Declaration
    Task<LocalIdentityResult> RemoveLoginAsync(string userId, UserLoginInfo loginInfo)
    Parameters
    Type Name Description
    System.String userId
    Microsoft.AspNet.Identity.UserLoginInfo loginInfo
    Returns
    Type Description
    System.Threading.Tasks.Task<LocalIdentityResult>

    SetIsApprovedAsync(String, Boolean)

    Declaration
    Task<LocalIdentityResult> SetIsApprovedAsync(string userId, bool userIsApproved)
    Parameters
    Type Name Description
    System.String userId
    System.Boolean userIsApproved
    Returns
    Type Description
    System.Threading.Tasks.Task<LocalIdentityResult>

    SetLockedOutAsync(String, Boolean)

    Declaration
    Task<LocalIdentityResult> SetLockedOutAsync(string userId, bool userIsLockedOut)
    Parameters
    Type Name Description
    System.String userId
    System.Boolean userIsLockedOut
    Returns
    Type Description
    System.Threading.Tasks.Task<LocalIdentityResult>

    SetPasswordAsync(String, String)

    Declaration
    Task<ChangePasswordResult> SetPasswordAsync(string userId, string password)
    Parameters
    Type Name Description
    System.String userId
    System.String password
    Returns
    Type Description
    System.Threading.Tasks.Task<ChangePasswordResult>

    ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest)

    Declaration
    Task<IList<Claim>> ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest request)
    Parameters
    Type Name Description
    ValidateUserAndGetClaimsRequest request
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>>

    ValidateUserAsync(String, String)

    Declaration
    Task<ValidateUserResult> ValidateUserAsync(string username, string password)
    Parameters
    Type Name Description
    System.String username
    System.String password
    Returns
    Type Description
    System.Threading.Tasks.Task<ValidateUserResult>
    In This Article
    Back to top (c) Meriworks 2002-2022