Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonathan L Folland 31 posts 173 karma points
    Apr 27, 2015 @ 16:14
    Jonathan L Folland
    0

    Authorization problem with UmbracoAuthorizedApiController not decorated with Plugin Umbraco Api

    I was having problems getting authorization failures on any class that inherited from UmbracoAuthorizedApiController that was not decorated with the PluginController UmbracoApi attribute; namely, DomainsApiController, ExamineManagementApiController and XmlDataIntegrityController.

    I traced it back to the UmbracoAuthorize attribute. At the point in checking for the user, the user was null. By adding the attribute on these classes it resolved the issue.

    [PluginController("UmbracoApi")]

        public class DomainsApiController : UmbracoAuthorizedApiController

    My question: is this a bug in the Umbraco code or does this sugest that there may be a problem with my configuration that is causing this behavior? I am not seeing others having the same issue.

Please Sign in or register to post replies

Write your reply to:

Draft