Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1240
Make ig.DataSource use WindowsAuthentication when using WCF web service
posted

My services are set up to only allow authenticated users access. ig.DataSource seems to use Anonymous access by default. How can I make it pass in the users credentials?

Thanks,

Mike

P.S. For a discussion on how to do this with raw Ajax calls see http://stackoverflow.com/questions/1002179/how-can-i-pass-windows-authentication-to-webservice-using-jquery specifically the suggestion by Maxy-B to use

xhrFields: { withCredentials: true }

Parents
No Data
Reply
  • 23953
    Offline posted

    Hello Michael,

    The igDataSource internally uses $.ajax for remote requests, but doesn't have a mechanism for providing users credentials.

    What you can try is to set the xhrFields: { withCredentials: true } in the $.ajaxSetup.

    Best regards,
    Martin Pavlov
    Infragistics, Inc.

Children