+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / User authentication for retrieving list of images via REST service

User authentication for retrieving list of images via REST service

4 posts, 0 answered
  1. Nate
    Nate avatar
    7 posts
    Registered:
    31 Jul 2013
    12 Feb 2014
    Link to this post
    I have an application from which I'd like to be able to retrieve a list of images in a library from Sitefinity.  What I can't figure out how to do is authenticate as a backend user so that I can get the list of images if I'm not (or any of the consumers of this feature) logged into Sitefinity.  We're running version 6.3, so posts I've found from version 5 don't seem to help since the Users service now requires you to be authenticated to call the authenticate method.

    I tried this link (http://www.sitefinity.com/blogs/svetla-yankovas-blog/2013/01/02/working-with-restful-services-part-2-claims-authentication-and-designing-service-calls) which has the same results as before.

    If there's a way to just get a list of images without authenticating, that'd be great.  I don't need anything but the URL and ID.  But if that's not possible, then I'd need to know how to authenticate the user outside of the Sitefinity project.

    Anyone know how to do this?
  2. Arno
    Arno avatar
    249 posts
    Registered:
    08 Sep 2010
    12 Feb 2014 in reply to Nate
    Link to this post
    Hi Nate,

    I don't have a full example, but what I do in similar situations is setting the SuppressSecurityChecks property of the provider to true. You can try to do so with the provider of the libraries manager.
  3. Nate
    Nate avatar
    7 posts
    Registered:
    31 Jul 2013
    13 Feb 2014 in reply to Arno
    Link to this post
    Thanks Arno!

    In my frustration I created a generic handler within the project in the hopes that it wouldn't require me to be authenticated, which seems to have worked.  I will keep your suggestion in mind in case what I have so far doesn't pan out.

    Thanks!
  4. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    17 Feb 2014 in reply to Nate
    Link to this post
    Hey Nate,

    Here's a little project I'm working on that may help you.
4 posts, 0 answered