Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IAuthorizationHelper

    Utility class for working with policy authorizers.

    Namespace: Umbraco.Cms.Core.Security.Authorization
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IAuthorizationHelper

    Methods

    View Source

    GetUmbracoUser(IPrincipal)

    Converts an System.Security.Principal.IPrincipal into an IUser.

    Declaration
    IUser GetUmbracoUser(IPrincipal currentUser)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser

    The current user's principal.

    Returns
    Type Description
    IUser

    IUser.

    View Source

    TryGetUmbracoUser(IPrincipal, out IUser)

    Attempts to convert an System.Security.Principal.IPrincipal into an IUser.

    Declaration
    virtual bool TryGetUmbracoUser(IPrincipal currentUser, out IUser user)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal currentUser

    The current user's principal.

    IUser user

    The resulting IUser, if the conversion is successful.

    Returns
    Type Description
    System.Boolean

    True if the conversion is successful, false otherwise

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetUmbracoUser(IPrincipal)
      • TryGetUmbracoUser(IPrincipal, out IUser)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX