Copied to clipboard

Flag this post as spam?

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


  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 09, 2015 @ 11:33
    Warren Buckley
    0

    [UmbracoAuthorize] Getting 401 Unathorized HTTP Status Code

    Hello Umbraco People,
    I am after some help & advice after I have recently upgraded a project that is now running Umbraco 7.2.6

    I have an UmbracoApiController class that has a mixed of publically & authorised methods in this class. The authorised methods have the attribute [UmbracoAuthorize] decorated on it.

    This was working all lovely previously before upgrading.

    Can anyone offer any advice on why this now not letting me hit these endpoints now?

    Cheers
    Warren

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jul 09, 2015 @ 11:57
    Anthony Dang
    1

    It's best to not mix your backoffice WebAPI with your public site.

    I would seperate the locked down backoffice one.

  • Stephen Roberts 47 posts 516 karma points c-trib
    Jul 09, 2015 @ 12:07
    Stephen Roberts
    1

    See this here: http://issues.umbraco.org/issue/U4-4990 also see this here http://umbraco.com/follow-us/blog-archive/2014/1/17/heads-up,-breaking-change-coming-in-702-and-62.aspx

    ensure you have the attribute [IsBackOffice] as mentioned in the blogpost

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies