How to do client-side authentication for REST calls?

Posted by Community Admin on 03-Aug-2018 20:28

How to do client-side authentication for REST calls?

All Replies

Posted by Community Admin on 11-May-2011 00:00

I want to do some REST calls on the frontend for client-side scripting. How do I authenticate via Javascript / jQuery since the end user will never be logged in?

Posted by Community Admin on 13-May-2011 00:00

Hello Basem,

You can use Sys.Net.WebRequest(); to make a POST request to /Sitefinity/Services/Security/Users.svc/. The parameter for authenticate method that you should use is Authenticate

Best wishes,
Ivan Dimitrov
the Telerik team

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

Posted by Community Admin on 31-May-2011 00:00

Could you please give us working example so that it will be helpful us to implement in our projects

Posted by Community Admin on 31-May-2011 00:00

Hi ,

It would not be possible to authenticate a user through the service using client side api. You need to make HttpWebRequest. You can take a look at this post

www.sitefinity.com/.../windows-authentication.aspx

Greetings,
Ivan Dimitrov
the Telerik team

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