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.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 |
|---|---|---|
| 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. |