Sitefinity Web Service - Doesn't run if not logged in
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
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
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.