How to pass security credentials to a WebService using Ajax?

Last post 11-05-2008 1:44 AM by Thomas Sun – MSFT. 1 replies.

Sort Posts:

  • How to pass security credentials to a WebService using Ajax?

    10-31-2008, 3:18 PM
    • Member
      115 point Member
    • OutOfTouch
    • Member since 03-13-2008, 10:03 PM
    • Posts 216

    Can someone point me to some articles on how to pass login info to a web service that uses forms authentication using Ajax?

    Is this possible?

    Examples using both MS Ajax and JQuery would be awesome.

    Thanks!

     

  • Re: How to pass security credentials to a WebService using Ajax?

    11-05-2008, 1:44 AM
    Answer

    Hi,

    If we use Form Authentication in Web Services, it needs to redirect user to a Login page to input the credit information.

    To avoid it, we can use Window Authentication, which doesn't need user to input the credit information in the page, instead, we can use NetworkCredential object to pass those credentials in program.

    We also use custom authentication, such as SoapHeader.

    For more information, see http://www.15seconds.com/issue/020312.htm

     

    I look forward to hearing from you.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (2 items)