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

Posted by Community Admin on 04-Aug-2018 09:08

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

All Replies

Posted by Community Admin on 17-Sep-2013 00:00

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

Posted by Community Admin on 19-Sep-2013 00:00

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

Posted by Community Admin on 20-Sep-2013 00:00

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

This thread is closed