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