Web/ForgeTrust.Runnable.Web.RazorWire/Streams/IRazorWireChannelAuthorizer.cs

IRazorWireChannelAuthorizer

Type

IRazorWireChannelAuthorizer

Defines the contract for authorizing subscription requests to RazorWire channels.
Method

CanSubscribeAsync(HttpContext, string)

Determines whether the current HTTP request is permitted to subscribe to the specified channel.
Type

DefaultRazorWireChannelAuthorizer

Provides a default implementation of that permits all subscriptions.
Method

CanSubscribeAsync(HttpContext, string)

Determine whether the request represented by the may subscribe to the specified channel.
SECURITY WARNING: This default implementation allows ALL subscriptions to ANY channel. It is intended for development and prototyping only. In a production environment, you should replace this service with an implementation that enforces your application's specific authorization rules (e.g., checking user claims or roles).