none
Received 403 Error after hitting Create File of OneDrive POST API using SAML Auth RRS feed

  • Question

  • Hi,

    We are working on developing an integration with One Drive for business.

    When we are trying to create file using SAML Auth mechanism, but 403: Forbidden Error is received.

    URL: POST https://<Host Name>/me/drive/root:/Documents/children

    Headers:

        Accept:application/json
        Content-Type:application/json
        Origin:<HostName> 
        Cookie: rtFa=<Value>;FedAuth=<value>
         X-RequestDigest:<value>
    Body:

    {
      "name": "Dummy_File_1.txt",
      "file": { },
      "@microsoft.graph.conflictBehavior": "rename"
    }
    Error: 

    {
        "error": {
            "code": "generalException",
            "message": "An unspecified error has occurred."
        }
    }
    Only we are able to hit GET request using SAML Authentication.

    Kindly guide us to achieve the same.


    Friday, June 22, 2018 10:38 AM