Not exactly sure what you are attempting to do, so perhaps you could explain a little more.
The UmbracoMemberAuthorize attribute checks if your logged in member has access to the action being called and is idependant of the actual code in your action, maybe you should be using a custom authorise attribute for what you require.
Using UmbracoMemberAuthorize in custom API controller: How to return only 401 code and not the error page?
Using UmbracoMemberAuthorize in custom API controller: How to return only 401 code and not the error page?
I've this code:
I wish to return 401 and not go to the login/error page.
Bumping this as i could really do with knowing how to solve this issue as well.
Not exactly sure what you are attempting to do, so perhaps you could explain a little more.
The UmbracoMemberAuthorize attribute checks if your logged in member has access to the action being called and is idependant of the actual code in your action, maybe you should be using a custom authorise attribute for what you require.
is working on a reply...