Class ServerSentEventsAuthorization
Defines authorization rules for Server-Sent Events endpoint.
Implements
Inherited Members
Namespace: Lib.AspNetCore.ServerSentEvents
Assembly: Lib.AspNetCore.ServerSentEvents.dll
Syntax
public class ServerSentEventsAuthorization : IAuthorizeData
Properties
AuthenticationSchemes
Gets or sets a comma delimited list of schemes from which user information is constructed.
Declaration
public string AuthenticationSchemes { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Default
Gets the ServerSentEventsAuthorization instance which will result in using the default authorization policy.
Declaration
public static ServerSentEventsAuthorization Default { get; }
Property Value
| Type | Description |
|---|---|
| ServerSentEventsAuthorization |
Policy
Gets or sets the policy name that determines access to the endpoint.
Declaration
public string Policy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Roles
Gets or sets a comma delimited list of roles that are allowed to access the endpoint.
Declaration
public string Roles { get; set; }
Property Value
| Type | Description |
|---|---|
| string |