More in this section

Forums / General Discussions / How to do client-side authentication for REST calls?

How to do client-side authentication for REST calls?

4 posts, 0 answered
  1. Basem
    Basem avatar
    131 posts
    Registered:
    22 Dec 2010
    11 May 2011
    Link to this post
    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?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 May 2011
    Link to this post
    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
  3. kiran
    kiran avatar
    2 posts
    Registered:
    26 May 2011
    31 May 2011
    Link to this post
    Could you please give us working example so that it will be helpful us to implement in our projects
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    31 May 2011
    Link to this post
    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

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/windows-authentication.aspx#1655610

    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
4 posts, 0 answered