Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberManager

    Inheritance
    System.Object
    UmbracoUserManager<MemberIdentityUser, MemberPasswordConfigurationSettings>
    Namespace: Umbraco.Cms.Web.Common.Security
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class MemberManager : UmbracoUserManager<MemberIdentityUser, MemberPasswordConfigurationSettings>, IMemberManager, IUmbracoUserManager<MemberIdentityUser>

    Constructors

    View Source

    MemberManager(IIpResolver, IMemberUserStore, IOptions<IdentityOptions>, IPasswordHasher<MemberIdentityUser>, IEnumerable<IUserValidator<MemberIdentityUser>>, IEnumerable<IPasswordValidator<MemberIdentityUser>>, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<MemberIdentityUser>>, IOptions<MemberPasswordConfigurationSettings>, IPublicAccessService, IHttpContextAccessor)

    Declaration
    public MemberManager(IIpResolver ipResolver, IMemberUserStore store, IOptions<IdentityOptions> optionsAccessor, IPasswordHasher<MemberIdentityUser> passwordHasher, IEnumerable<IUserValidator<MemberIdentityUser>> userValidators, IEnumerable<IPasswordValidator<MemberIdentityUser>> passwordValidators, IdentityErrorDescriber errors, IServiceProvider services, ILogger<UserManager<MemberIdentityUser>> logger, IOptions<MemberPasswordConfigurationSettings> passwordConfiguration, IPublicAccessService publicAccessService, IHttpContextAccessor httpContextAccessor)
    Parameters
    Type Name Description
    IIpResolver ipResolver
    IMemberUserStore store
    Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> optionsAccessor
    Microsoft.AspNetCore.Identity.IPasswordHasher<MemberIdentityUser> passwordHasher
    System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IUserValidator<MemberIdentityUser>> userValidators
    System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Identity.IPasswordValidator<MemberIdentityUser>> passwordValidators
    Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors
    System.IServiceProvider services
    Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Identity.UserManager<MemberIdentityUser>> logger
    Microsoft.Extensions.Options.IOptions<MemberPasswordConfigurationSettings> passwordConfiguration
    IPublicAccessService publicAccessService
    Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor

    Methods

    View Source

    AsPublishedMember(MemberIdentityUser)

    Declaration
    public IPublishedContent AsPublishedMember(MemberIdentityUser user)
    Parameters
    Type Name Description
    MemberIdentityUser user
    Returns
    Type Description
    IPublishedContent
    View Source

    GetCurrentMemberAsync()

    Declaration
    public async Task<MemberIdentityUser> GetCurrentMemberAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<MemberIdentityUser>
    View Source

    IsLoggedIn()

    Declaration
    public bool IsLoggedIn()
    Returns
    Type Description
    System.Boolean
    View Source

    IsMemberAuthorizedAsync(IEnumerable<String>, IEnumerable<String>, IEnumerable<Int32>)

    Declaration
    public async Task<bool> IsMemberAuthorizedAsync(IEnumerable<string> allowTypes = null, IEnumerable<string> allowGroups = null, IEnumerable<int> allowMembers = null)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> allowTypes
    System.Collections.Generic.IEnumerable<System.String> allowGroups
    System.Collections.Generic.IEnumerable<System.Int32> allowMembers
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>
    View Source

    IsProtectedAsync(IEnumerable<String>)

    Declaration
    public Task<IReadOnlyDictionary<string, bool>> IsProtectedAsync(IEnumerable<string> paths)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> paths
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<System.String, System.Boolean>>
    View Source

    IsProtectedAsync(String)

    Declaration
    public Task<bool> IsProtectedAsync(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>
    Remarks

    this is a cached call

    View Source

    MemberHasAccessAsync(IEnumerable<String>)

    Declaration
    public async Task<IReadOnlyDictionary<string, bool>> MemberHasAccessAsync(IEnumerable<string> paths)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.String> paths
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<System.String, System.Boolean>>
    View Source

    MemberHasAccessAsync(String)

    Declaration
    public async Task<bool> MemberHasAccessAsync(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MemberManager(IIpResolver, IMemberUserStore, IOptions<IdentityOptions>, IPasswordHasher<MemberIdentityUser>, IEnumerable<IUserValidator<MemberIdentityUser>>, IEnumerable<IPasswordValidator<MemberIdentityUser>>, IdentityErrorDescriber, IServiceProvider, ILogger<UserManager<MemberIdentityUser>>, IOptions<MemberPasswordConfigurationSettings>, IPublicAccessService, IHttpContextAccessor)
    • Methods
      • AsPublishedMember(MemberIdentityUser)
      • GetCurrentMemberAsync()
      • IsLoggedIn()
      • IsMemberAuthorizedAsync(IEnumerable<String>, IEnumerable<String>, IEnumerable<Int32>)
      • IsProtectedAsync(IEnumerable<String>)
      • IsProtectedAsync(String)
      • MemberHasAccessAsync(IEnumerable<String>)
      • MemberHasAccessAsync(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX