Class JwtAuthorizeAttribute
public class JwtAuthorizeAttribute : AuthorizeAttribute, _Attribute, IAuthorizationFilter, IFilter
- Inheritance
-
JwtAuthorizeAttribute
- Implements
- Inherited Members
Constructors
JwtAuthorizeAttribute()
public JwtAuthorizeAttribute()
Methods
GetJwt(string)
public static (IJwt jwt, bool wasInCache) GetJwt(string token)
Parameters
tokenstring
Returns
- (IJwt jwt, bool wasInCache)
OnAuthorization(HttpActionContext)
Calls when an action is being authorized.
public override void OnAuthorization(HttpActionContext context)
Parameters
contextHttpActionContext
Exceptions
- ArgumentNullException
The context parameter is null.