Oauth2 for SharePoint 365 REST

后端 未结 4 1311
鱼传尺愫
鱼传尺愫 2021-02-02 01:44

I\'m trying to connect to Sharepoint Online (Sharepoint 365?) content using OAuth2 and the REST API. I need to do this from Python as it is an addition to an existing applicati

4条回答
  •  长发绾君心
    2021-02-02 02:32

    I think you are trying to do OAuth from Sharepoint Online without creating an Add-In inside Sharepoint. This was the exact problem I was facing. I know this is an old question but my answer might be helpful to someone else coming here.

    It is possible to do OAuth from any web-app. Here are the step by step instructions in my blog -

    https://medium.com/@yash_agarwal2/performing-oauth-and-rest-calls-with-sharepoint-online-without-creating-an-add-in-677e15c8d6ab#.6pf4wp83b

    High Level overview -

    1) Get client id and secret by registering yourself here - https://sellerdashboard.microsoft.com/Registration

    2) Get Access Token, Refresh Token by following steps here -

    https://msdn.microsoft.com/en-us/library/office/jj687470.aspx

提交回复
热议问题