Authenticate to sharepoint online from non .net platfom RRS feed

  • Question

  • I am following the given article to get the security token by providing the proper credentials for authentication to a SharePoint Online site: 

    Below is a snippet of the XML request I am sending:

    <s:Envelope xmlns:s=""
        <a:Action s:mustUnderstand="1"></a:Action>
        <a:To s:mustUnderstand="1"></a:To>
        <o:Security s:mustUnderstand="1"
        <t:RequestSecurityToken xmlns:t="">
          <wsp:AppliesTo xmlns:wsp="">
              <a:Address>[SharePoint Online Site Url]</a:Address>

    But the issue I am currently facing is that I always get response which says that the entered and stored passwords do not match.&#x000D;&#x000A. Below is a snippet of the error response I am currently getting. 

    <?xml version="1.0" encoding="utf-8" ?>
    <S:Envelope xmlns:S="" xmlns:wsse="" xmlns:wsu="" xmlns:wst="" xmlns:psf="">
                    <S:Text xml:lang="en-US">Authentication Failure</S:Text>
                            <psf:text>The entered and stored passwords do not match.&#x000D;&#x000A;</psf:text>
    Any help from anyone would highly be appreciated.

    Aniket Banerjee

    Wednesday, February 1, 2017 9:41 AM

All replies

  • Hi,

    this approach doesn't work anymore, according with your requirements I suggest to you of using Adal.js a javascript library that handle the authentication with SharePoint Online (Azure AD) please  check this article:

    Keep in mind that is also necessary to do the Azure AD configuration to grant your app the access.

    Kind regards, 

    Giuliano De Luca - MCSD SharePoint, MCSD Web Applications, MCPS, MS. Twitter: @giuleon Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Wednesday, February 1, 2017 10:53 AM
  • Hi,

    Is any update for your issue?

    Best Regards,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Thursday, February 9, 2017 8:49 AM