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

Forums / Developing with Sitefinity / Sitefinity Web Service - Doesn't run if not logged in

Sitefinity Web Service - Doesn't run if not logged in

3 posts, 0 answered
  1. Gary
    Gary avatar
    28 posts
    Registered:
    16 May 2012
    17 Sep 2013
    Link to this post
    Hi again,

    I'm working on a web service to run some tasks for me every so often.

    I have the script working fine, but it will only run if I'm logged in to the backend. How can I set it up to run even if the user isn't logged in to the backend of the site? (e.g, I need it to run even for unauthenticated users)

    Many thanks,

    Gary
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    19 Sep 2013 in reply to Gary
    Link to this post
    HI Gary,

    As far as I know, this is not possible. You need to authenticate to work with e.g. the Content Items of Sitefinity.

    Are you using Claims or Forms authentication?
    Maybe if you use Claims, you could do a call to the WCF service. You will get a token which you then could use for all the other calls.

    Another way would be to create your own WebAPI, which would give you a much more cleaner result anyway.

    Kind regards,
    Daniel
  3. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    20 Sep 2013
    Link to this post
    Hi guys,

    You can take a look at the following blog post which also covers authentication when using services in Sitefinity.

    I hope this helps.

    Regards,
    Pavel Benov
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
3 posts, 0 answered