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<string> |
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 |
|---|---|---|
| ClaimsPrincipal | principal | The principal that being authorized. |
| string | eventSource | The event source to authorize the principal for. |
Returns
| Type | Description |
|---|---|
| Task<bool> | True is authorized, false if unauthorized. |