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 SourceAuthorizableEventSources
The event sources this authorizer authorizes for.
Declaration
IEnumerable<string> AuthorizableEventSources { get; }
Property Value
Type | Description |
---|---|
IEnumerable<System. |
Methods
View SourceAuthorizeAsync(ClaimsPrincipal, String)
Authorizes a Claims principal to access an event source.
Declaration
Task<bool> AuthorizeAsync(ClaimsPrincipal principal, string eventSource)
Parameters
Type | Name | Description |
---|---|---|
System. |
principal | The principal that being authorized. |
System. |
eventSource | The event source to authorize the principal for. |
Returns
Type | Description |
---|---|
Task<System. |
True is authorized, false if unauthorized. |