Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IServerEventAuthorizationService

    Provides authorization services for server-sent events.

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

    This service determines which event sources a user is authorized to subscribe to based on their claims and the registered IEventSourceAuthorizer instances.

    Methods

    View Source

    AuthorizeAsync(ClaimsPrincipal)

    Authorizes a user to listen to server events.

    Declaration
    Task<SeverEventAuthorizationResult> AuthorizeAsync(ClaimsPrincipal user)
    Parameters
    Type Name Description
    ClaimsPrincipal user

    The user to authorize.

    Returns
    Type Description
    Task<SeverEventAuthorizationResult>

    The authorization result, containing all authorized event sources and unauthorized event sources.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX