Class SignalRJWTAuthorizeAttribute
Proof authorization by checking the JWT
Inheritance
System.Object
SignalRJWTAuthorizeAttribute
Namespace: Simplic.Framework.WebAPI
Assembly: Simplic.Framework.WebAPI.dll
Syntax
public class SignalRJWTAuthorizeAttribute : AuthorizeAttribute
Methods
| Improve this Doc View SourceAuthorizeHubConnection(HubDescriptor, IRequest)
Authenticate and authorize a request using JWT
Declaration
public override bool AuthorizeHubConnection(HubDescriptor hubDescriptor, IRequest request)
Parameters
Type | Name | Description |
---|---|---|
HubDescriptor | hubDescriptor | Action context for the action that should be executed |
IRequest | request |
Returns
Type | Description |
---|---|
System.Boolean | True if the token is valid, else false |
AuthorizeHubMethodInvocation(IHubIncomingInvokerContext, Boolean)
Declaration
public override bool AuthorizeHubMethodInvocation(IHubIncomingInvokerContext hubIncomingInvokerContext, bool appliesToMethod)
Parameters
Type | Name | Description |
---|---|---|
IHubIncomingInvokerContext | hubIncomingInvokerContext | |
System.Boolean | appliesToMethod |
Returns
Type | Description |
---|---|
System.Boolean |