smartmeter

Results 4 comments of smartmeter

@NightOwl888 awesomeness in a chocolate lava cake :+1: Wow thats simpler with `AuthorizeAttribute` and `security trimming=true`, and I do not even need to implement the ControllerContextExtensions, correct? Can you please...

Hi, will this work @NightOwl888 will this satisfy the need for the filter context ``` protected override void HandleUnauthorizedRequest(AuthorizationContext filterCtx) { if (filterCtx.HttpContext.Request.IsAuthenticated) { filterCtx.Result = new HttpStatusCodeResult(403); return; }...

Great thanks! :cake: I am using this approach by @NightOwl888 - _"Another would be to make a custom AuthorizeAttribute, override the AuthorizeCore method and return true whenever the authorization succeeds....

This is a lot easier than that.. I have been trying that, but errors