Class ServerSentEventsAuthorization
Defines authorization rules for Server-Sent Events endpoint.
Inheritance
System.Object
ServerSentEventsAuthorization
Implements
Microsoft.AspNetCore.Authorization.IAuthorizeData
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.String |
Implements
Microsoft.AspNetCore.Authorization.IAuthorizeData