Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IEventSourceAuthorizer

    Authorizes a Claims principal to access an event source.

    Namespace: Umbraco.Cms.Core.ServerEvents
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IEventSourceAuthorizer

    Properties

    View Source

    AuthorizableEventSources

    The event sources this authorizer authorizes for.

    Declaration
    IEnumerable<string> AuthorizableEventSources { get; }
    Property Value
    Type Description
    IEnumerable<System.String>

    Methods

    View Source

    AuthorizeAsync(ClaimsPrincipal, String)

    Authorizes a Claims principal to access an event source.

    Declaration
    Task<bool> AuthorizeAsync(ClaimsPrincipal principal, string eventSource)
    Parameters
    Type Name Description
    System.Security.Claims.ClaimsPrincipal principal

    The principal that being authorized.

    System.String eventSource

    The event source to authorize the principal for.

    Returns
    Type Description
    Task<System.Boolean>

    True is authorized, false if unauthorized.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • AuthorizableEventSources
    • Methods
      • AuthorizeAsync(ClaimsPrincipal, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX