Copied to clipboard

Flag this post as spam?

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


  • Andre Bispo 2 posts 72 karma points
    Feb 23, 2016 @ 12:04
    Andre Bispo
    0

    Authorization has been denied for this request.

    Hello guys, Is there any way to have a public endpoint using umbraco 7?

    i have an UmbracoAuthorizedApiController class and if im not logged into the backoffice i cannot access it, always returns "Authorization has been denied for this request.".

    I wanted it to be public so my mobile app could access it and consume the data.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 23, 2016 @ 13:13
    Dave Woestenborghs
    1

    Instead UmbracoAuthorizedApiController use UmbracoApiController as a base class.

    That should do it.

    Dave

  • Andre Bispo 2 posts 72 karma points
    Feb 23, 2016 @ 13:44
    Andre Bispo
    0

    Thanks mate you are the real mvp hehe

    cheers

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 23, 2016 @ 13:53
    Dave Woestenborghs
    0

    No problem. You are welcome

    Don't forget to mark the topic as a solution. So other can find it as well.

    Dave

  • 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