Copied to clipboard

Flag this post as spam?

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


  • alimac 173 posts 340 karma points
    May 01, 2017 @ 21:10
    alimac
    0

    Getting data from an UmbracoAuthorizedJsonController

    Hi,

    I'm having some difficulty retrieving JSON data from a controller that inherits from UmbracoAuthorizedJsonController. The call seems to be rejected as 401 Unauthorized.

    If I move the call to a regular UmbracoApiController then it seems I can access the data as expected.

    This has actually worked out okay for my current situation as the data isn't sensitive, but if that situation changes, is there any way I can hook it up with some sort of secure call?

    Thanks

    (Also thanks for the great work, this package is incredibly useful!)

  • Alex Skrypnyk 5273 posts 19288 karma points MVP 3x admin c-trib
    May 05, 2017 @ 11:10
    Alex Skrypnyk
    100

    Hi Alimac

    You has to create authentication mechanism for using UmbracoAuthorizedJsonControllers in Umbraco, there are no other ways to use UmbracoAuthorizedJsonController without authentication.

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft